Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/basic/test_go_to_my_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_should_click_go_to_my_location_button_and_move_map(self, page: Page):
my_location_button.click()

# Wait for map tile to load and verify it's a high-zoom tile for the location
# Different frontend versions may zoom to slightly different levels (14-16)
# Different frontend versions may zoom to slightly different levels (13-16)
map_tile = page.locator(".leaflet-tile-container > img").first
expect(map_tile).to_have_attribute(
"src", re.compile(location["tile_pattern"]), timeout=MARKER_LOAD_TIMEOUT
Expand Down
4 changes: 2 additions & 2 deletions tests/basic/test_navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def test_home_link_navigates_back_to_map(self, page: Page):
# Navigate to About page first
page.goto(f"{BASE_URL}/blog/page/about", wait_until="domcontentloaded")

# Click home link (logo)
home_link = page.get_by_role("link", name="Link to home page")
# Click home link (logo) - try aria-label first, fall back to navbar-brand link
home_link = page.locator('a[aria-label="Link to home page"], a.navbar-brand').first
home_link.click()

# Verify we're back on the home page
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"RYSY_MOUNTAIN": {
"lat": 49.179,
"lon": 20.088,
"tile_pattern": r"https://[abc]\.tile\.openstreetmap\.org/1[456]/\d+/\d+\.png",
"tile_pattern": r"https://[abc]\.tile\.openstreetmap\.org/1[3-6]/\d+/\d+\.png",
},
"WROCLAW_CENTER": {"lat": 51.10655, "lon": 17.0555},
}
Expand Down