Skip to content

Commit

Permalink
Made SeleniumTests.test_inline_add_another_widgets less flaky by addi…
Browse files Browse the repository at this point in the history
…ng explicit wait.
  • Loading branch information
MHLut authored and sarahboyce committed Apr 17, 2024
1 parent f0d50a9 commit 2be37b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/admin_views/test_autocomplete_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,8 @@ def test_inline_add_another_widgets(self):

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(
Expand Down

0 comments on commit 2be37b2

Please sign in to comment.