Highlight map stops from result list

This commit is contained in:
Edward Betts 2026-08-15 12:35:09 +01:00
parent 7da704d837
commit aeb429768b
3 changed files with 37 additions and 0 deletions

View file

@ -95,11 +95,14 @@ def test_search_and_stop_details_in_browser(chromium_browser: Any, flask_url: st
assert page.locator("#stop-list .stop-title").all_inner_texts() == ["Central Stop", "Nearby Stop"]
playwright_api.expect(page.locator("#stop-list .stop-meta").first).to_contain_text("m · Bus stop")
playwright_api.expect(page.locator("#stop-list .stop-meta").first).to_contain_text("NW-bound")
page.get_by_text("Central Stop", exact=True).hover()
playwright_api.expect(page.locator(".hovered-stop-marker")).to_be_visible()
assert page.evaluate("map.getZoom()") > 6
page.evaluate("markers.getLayers()[0].openTooltip()")
playwright_api.expect(page.get_by_text("Central Stop · NW-bound · Bus stop", exact=True)).to_be_visible()
page.get_by_text("Central Stop", exact=True).click()
playwright_api.expect(page).to_have_url(re.compile(r"\?node=123$"))
playwright_api.expect(page.locator(".hovered-stop-marker")).to_be_hidden()
playwright_api.expect(page.locator("#atco-code")).to_have_text("0100BRP90314")
playwright_api.expect(page.locator("#stop-type")).to_have_text("Bus stop")
playwright_api.expect(page.locator("#stop-bearing")).to_have_text("NW-bound")