Skip to content

Commit

Permalink
test out a small change to the test
Browse files Browse the repository at this point in the history
  • Loading branch information
evemartin committed Aug 30, 2024
1 parent 442e621 commit 938e26f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions game/end_to_end_tests/test_level_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,18 +302,15 @@ def test_pigeon(self):
)
ActionChains(self.selenium).drag_and_drop(source_cow, end_space).perform()

scenery_cow = self.selenium.find_elements(
scenery_animal = self.selenium.find_elements(
By.CSS_SELECTOR, "image[x='0'][y='0']"
)
cow_link = scenery_cow[0].get_attribute("href")
cow_link = scenery_animal[0].get_attribute("href")
assert cow_link == "/static/game/raphael_image/Clarice.svg"

Select(self.selenium.find_element(By.ID, "theme_select")).select_by_value(
"city"
)

scenery_pigeon = self.selenium.find_elements(
By.CSS_SELECTOR, "image[x='0'][y='0']"
)
pigeon_link = scenery_pigeon[0].get_attribute("href")
pigeon_link = scenery_animal[0].get_attribute("href")
assert pigeon_link == "/static/game/raphael_image/pigeon.svg"

0 comments on commit 938e26f

Please sign in to comment.