Skip to content

Commit

Permalink
[fix:tests] Fixed flaky selenium test: test_autocomplete_shelf_filter #…
Browse files Browse the repository at this point in the history
…400

Closes #400
  • Loading branch information
youhaveme9 authored Jan 8, 2025
1 parent 1011f52 commit be0a28e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_project/tests/test_selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,11 @@ def test_autocomplete_shelf_filter(self):
)
self.web_driver.find_element(By.CSS_SELECTOR, filter_css_selector).click()
self.web_driver.find_element(By.CSS_SELECTOR, '.select2-container--open')
WebDriverWait(self.web_driver, 10).until(
EC.presence_of_element_located(
(By.XPATH, f'//*[contains(text(), "{horror_shelf.name}")]')
)
)
self.assertIn(horror_shelf.name, self.web_driver.page_source)
self.assertIn(factual_shelf.name, self.web_driver.page_source)
self.web_driver.find_element(By.XPATH, filter_option_xpath).click()
Expand Down

0 comments on commit be0a28e

Please sign in to comment.