mirror of
https://github.com/django/django.git
synced 2025-01-03 06:55:47 +00:00
Made SeleniumTests.test_inline_add_another_widgets less flaky by adding explicit wait.
This commit is contained in:
parent
f0d50a9379
commit
2be37b2533
@ -576,6 +576,7 @@ class SeleniumTests(AdminSeleniumTestCase):
|
||||
|
||||
def assertNoResults(row):
|
||||
elem = row.find_element(By.CSS_SELECTOR, ".select2-selection")
|
||||
with self.select2_ajax_wait():
|
||||
elem.click() # Open the autocomplete dropdown.
|
||||
results = self.selenium.find_element(By.CSS_SELECTOR, ".select2-results")
|
||||
self.assertTrue(results.is_displayed())
|
||||
|
Loading…
Reference in New Issue
Block a user