mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Made SeleniumTests.test_select_multiple less flaky by adding explicit Selenium wait.
This commit is contained in:
parent
1699f8b52a
commit
decbfa834f
@ -494,7 +494,8 @@ class SeleniumTests(AdminSeleniumTestCase):
|
||||
+ reverse("autocomplete_admin:admin_views_question_add")
|
||||
)
|
||||
elem = self.selenium.find_element(By.CSS_SELECTOR, ".select2-selection")
|
||||
elem.click() # Open the autocomplete dropdown.
|
||||
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())
|
||||
option = self.selenium.find_element(By.CSS_SELECTOR, ".select2-results__option")
|
||||
|
Loading…
Reference in New Issue
Block a user