Skip to content

Commit

Permalink
Fix a few tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blackary committed Jul 9, 2024
1 parent 1840776 commit 8da17a0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/test_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_marker_click(page: Page):
# Click marker
try:
page.frame_locator('iframe[title="streamlit_folium\\.st_folium"]').get_by_role(
"button", name="Marker"
"img"
).click()
except Exception as e:
page.screenshot(path="screenshot-test-marker-click.png", full_page=True)
Expand Down Expand Up @@ -121,13 +121,13 @@ def test_limit_data(page: Page):
# Click marker
page.frame_locator(

Check failure on line 122 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.9)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)

Check failure on line 122 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.9)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)

Check failure on line 122 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.9)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)

Check failure on line 122 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.9)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)

Check failure on line 122 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.8)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)

Check failure on line 122 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.8)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)

Check failure on line 122 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.8)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)

Check failure on line 122 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.8)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)
'internal:attr=[title="streamlit_folium.st_folium"i]'
).get_by_role("button").nth(2).click()
).get_by_role("img").nth(2).click()

Check failure on line 124 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.12)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)

Check failure on line 124 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.12)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)

Check failure on line 124 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.12)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)

Check failure on line 124 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.12)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)

Check failure on line 124 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.11)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)

Check failure on line 124 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.11)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)

Check failure on line 124 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.11)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)

Check failure on line 124 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.11)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)

Check failure on line 124 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.10)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)

Check failure on line 124 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.10)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)

Check failure on line 124 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.10)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)

Check failure on line 124 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.10)

test_limit_data[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for get_by_title("streamlit_folium.st_folium").locator("internal:control=enter-frame").get_by_role("img").nth(2)

# Have to click a second time for some reason, maybe because it doesn't load right
# away
page.frame_locator(
'internal:attr=[title="streamlit_folium.st_folium"i]'
).get_by_role("button").nth(2).click()
).get_by_role("img").nth(2).click()

expect(page.get_by_text('{"last_object_clicked":{"lat":39.96')).to_be_visible()

Expand All @@ -146,10 +146,10 @@ def test_dual_map(page: Page):
try:
page.frame_locator('iframe[title="streamlit_folium\\.st_folium"]').locator(
"#map_div"
).get_by_role("button", name="Marker").click()
).get_by_role("img").click()
page.frame_locator('iframe[title="streamlit_folium\\.st_folium"]').locator(
"#map_div2"
).get_by_role("button", name="Marker").click()
).get_by_role("img").click()
except Exception as e:
page.screenshot(path="screenshot-dual-map.png", full_page=True)
raise e

Check failure on line 155 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.12)

test_dual_map[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for frame_locator("iframe[title=\"streamlit_folium\\.st_folium\"]").locator("#map_div").get_by_role("img")

Check failure on line 155 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.12)

test_dual_map[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for frame_locator("iframe[title=\"streamlit_folium\\.st_folium\"]").locator("#map_div").get_by_role("img")

Check failure on line 155 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.9)

test_dual_map[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for frame_locator("iframe[title=\"streamlit_folium\\.st_folium\"]").locator("#map_div").get_by_role("img")

Check failure on line 155 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.9)

test_dual_map[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for frame_locator("iframe[title=\"streamlit_folium\\.st_folium\"]").locator("#map_div").get_by_role("img")

Check failure on line 155 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.11)

test_dual_map[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for frame_locator("iframe[title=\"streamlit_folium\\.st_folium\"]").locator("#map_div").get_by_role("img")

Check failure on line 155 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.11)

test_dual_map[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for frame_locator("iframe[title=\"streamlit_folium\\.st_folium\"]").locator("#map_div").get_by_role("img")

Check failure on line 155 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.10)

test_dual_map[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for frame_locator("iframe[title=\"streamlit_folium\\.st_folium\"]").locator("#map_div").get_by_role("img")

Check failure on line 155 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.10)

test_dual_map[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for frame_locator("iframe[title=\"streamlit_folium\\.st_folium\"]").locator("#map_div").get_by_role("img")

Check failure on line 155 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.8)

test_dual_map[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for frame_locator("iframe[title=\"streamlit_folium\\.st_folium\"]").locator("#map_div").get_by_role("img")

Check failure on line 155 in tests/test_frontend.py

View workflow job for this annotation

GitHub Actions / build (3.8)

test_dual_map[chromium] playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded. Call log: waiting for frame_locator("iframe[title=\"streamlit_folium\\.st_folium\"]").locator("#map_div").get_by_role("img")
Expand All @@ -172,7 +172,7 @@ def test_tooltip_click(page: Page):
# Click marker on map
page.frame_locator(
'internal:attr=[title="streamlit_folium.st_folium"i]'
).get_by_role("button").nth(0).click()
).get_by_role("img").nth(0).click()

expect(
page.get_by_text('"last_object_clicked_tooltip":"Liberty Bell"')
Expand Down Expand Up @@ -208,7 +208,7 @@ def test_return_on_hover(page: Page):
page.get_by_text("Return on hover?").click()

page.frame_locator('iframe[title="streamlit_folium\\.st_folium"]').get_by_role(
"button"
"img"
).nth(1).hover()

try:
Expand Down

0 comments on commit 8da17a0

Please sign in to comment.