1
0
mirror of https://github.com/django/django.git synced 2025-01-03 15:06:09 +00:00

Made SeleniumTests.test_inline_add_another_widgets less flaky by adding explicit wait.

This commit is contained in:
Marijke Luttekes 2024-04-17 16:30:13 +02:00 committed by Sarah Boyce
parent f0d50a9379
commit 2be37b2533

View File

@ -576,7 +576,8 @@ class SeleniumTests(AdminSeleniumTestCase):
def assertNoResults(row):
elem = row.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(