From 70dc1e1be701279ca1fac157902df76303a7a863 Mon Sep 17 00:00:00 2001 From: Eve Martin Date: Fri, 30 Aug 2024 12:58:06 +0000 Subject: [PATCH] test out adding delay to test --- game/end_to_end_tests/test_level_editor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/game/end_to_end_tests/test_level_editor.py b/game/end_to_end_tests/test_level_editor.py index 13938e491..084ebe526 100644 --- a/game/end_to_end_tests/test_level_editor.py +++ b/game/end_to_end_tests/test_level_editor.py @@ -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')]")