Skip to content

Commit

Permalink
Use expect(page.locator) for count
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jan 13, 2024
1 parent dec922d commit 4c10a3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_playwright.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@
def test_markers_are_displayed(ds_server, table, page):
page.goto(ds_server + "/data/" + table)
# There should be two leaflet-marker-icons
page.wait_for_selector(".leaflet-marker-icon", timeout=3000)
assert len(page.query_selector_all(".leaflet-marker-icon")) == 2
sync_api.expect(page.locator(".leaflet-marker-icon")).to_have_count(2)

0 comments on commit 4c10a3c

Please sign in to comment.