Skip to content

Commit

Permalink
debug test
Browse files Browse the repository at this point in the history
  • Loading branch information
evemartin committed May 13, 2024
1 parent ebd9640 commit 367ebc2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions game/end_to_end_tests/test_level_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ def test_code_tab_blocks_load(self):
def test_multiple_houses(self):
action = ActionChains(self.selenium)

self.go_to_level_editor()
page = self.go_to_level_editor()
add_road_button = self.selenium.find_element(By.ID, "add_road")
add_road_button.click()
action.move_to_element(add_road_button).move_by_offset(600, 0).click_and_hold().move_by_offset(300, 0).click()

road_image = self.selenium.find_element(By.XPATH, "//image[href='/static/game/raphael_image/road_tiles/road/dead_end.svg']")
road_image = self.selenium.find_elements(By.XPATH, "//image[href='/static/game/raphael_image/road_tiles/road/dead_end.svg']")
assert len(road_image) > 0

add_house_button = self.selenium.find_element(By.ID, "add_house")
add_house_button.click()
Expand Down

0 comments on commit 367ebc2

Please sign in to comment.