diff --git a/game/end_to_end_tests/test_level_editor.py b/game/end_to_end_tests/test_level_editor.py index 579b2c4e3..6217609c4 100644 --- a/game/end_to_end_tests/test_level_editor.py +++ b/game/end_to_end_tests/test_level_editor.py @@ -307,22 +307,18 @@ def test_pigeon(self): ) assert len(scenery_cow) == 1 cow_link = scenery_cow[0].get_attribute("href") - assert cow_link == "this will fail I just want to see what the link is" + assert cow_link == "/static/game/raphael_image/Clarice.svg" - cow = self.selenium.find_elements(By.XPATH, "//image[contains(@href, 'Clarice')]") + cow = self.selenium.find_elements(By.XPATH, "//image[@href='/static/game/raphael_image/Clarice.svg']") assert len(cow) == 1 Select(self.selenium.find_element(By.ID, "theme_select")).select_by_value( "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')]") + # pigeon = self.selenium.find_elements(By.XPATH, "//image[@href='/static/game/raphael_image/pigeon.svg']") + # nonexistent_cow = self.selenium.find_elements(By.XPATH, "//image[@href='/static/game/raphael_image/Clarice.svg']") # assert len(pigeon) == 1 # assert len(nonexistent_cow) == 0