Browse Source

fix(tests) Attempt to fix travis failures caused by timeout. (#20783)

Increase the max timeout for selector items to render in an attempt to
fix travis failures.
Mark Story 4 years ago
parent
commit
1f7071b40c
1 changed files with 4 additions and 3 deletions
  1. 4 3
      tests/acceptance/test_organization_switch.py

+ 4 - 3
tests/acceptance/test_organization_switch.py

@@ -37,9 +37,10 @@ class OrganizationSwitchTest(AcceptanceTestCase, SnubaTestCase):
             )
 
         def get_project_elements_from_project_selector_dropdown():
-            return self.browser.elements(
-                '[data-test-id="autocomplete-list"] [data-test-id="badge-display-name"]'
-            )
+            selector = '[data-test-id="autocomplete-list"] [data-test-id="badge-display-name"]'
+            self.browser.wait_until(selector, timeout=30)
+
+            return self.browser.find_elements_by_css_selector(selector)
 
         transition_urls = [
             OrganizationSwitchTest.url_creator(page, self.organization.slug)