Skip to content

Commit

Permalink
test out adding delay to test
Browse files Browse the repository at this point in the history
  • Loading branch information
evemartin committed Aug 30, 2024
1 parent c0498c6 commit 70dc1e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions game/end_to_end_tests/test_level_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,10 @@ def test_pigeon(self):
"city"
)

assert WebDriverWait(self.selenium, DELAY_TIME).until(
EC.presence_of_element_located((By.XPATH, "//image[contains(@href, 'pigeon')]"))
)

pigeon = self.selenium.find_elements(By.XPATH, "//image[contains(@href, 'pigeon')]")
nonexistent_cow = self.selenium.find_elements(By.XPATH, "//image[contains(@href, 'Clarice')]")

Expand Down

0 comments on commit 70dc1e1

Please sign in to comment.