Skip to content
This repository has been archived by the owner on Jan 7, 2024. It is now read-only.

Commit

Permalink
TST: fix flakey sport page selenium test (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
fgebhart authored Feb 14, 2021
1 parent baf9015 commit dddc412
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions wizer/tests/integration_tests/browser_tests/test_sport_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,14 @@ def test_sport_page__complete(import_demo_data, live_server, webdriver):
assert len(webdriver.find_elements_by_class_name("fa-history")) > 0

# check that map is displayed
assert (
webdriver.find_element_by_id("map").text
== "Streets\nTopo\nTerrain\nSatellite\n+\n\n100 km\nLeaflet | Map data: © OpenStreetMap"
)
map_text = webdriver.find_element_by_id("map").text
assert "Streets" in map_text
assert "Leaflet | Map data: © OpenStreetMap" in map_text
assert "−" in map_text
assert "+" in map_text
assert "Satellite" in map_text
assert "Terrain" in map_text
assert "Topo" in map_text

# check that bokeh plot is available
assert len(webdriver.find_elements_by_class_name("bk-canvas")) == 1
Expand Down

0 comments on commit dddc412

Please sign in to comment.