Skip to content
Merged
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
5 changes: 3 additions & 2 deletions frontend/e2e/live-map.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ test.describe("Live Map — map rendering", () => {
test("toolbar shows Coverage / Labels / Trails toggle buttons", async ({ page }) => {
await page.goto(BASE);
await expect(page.locator(".live-map-toolbar")).toBeVisible({ timeout: 10_000 });
await expect(page.getByRole("button", { name: /Coverage/i })).toBeVisible();
// "Coverage gaps" also matches a loose /Coverage/, so this must stay exact.
await expect(page.getByRole("button", { name: "Coverage", exact: true })).toBeVisible();
await expect(page.getByRole("button", { name: /Labels/i })).toBeVisible();
await expect(page.getByRole("button", { name: /Trails/i })).toBeVisible();
});
Expand Down Expand Up @@ -258,7 +259,7 @@ test.describe("Live Map — toolbar toggles", () => {
await page.goto(BASE);
await expect(page.locator(".live-map-toolbar")).toBeVisible({ timeout: 10_000 });

const btn = page.getByRole("button", { name: /Coverage/i });
const btn = page.getByRole("button", { name: "Coverage", exact: true });
const initialActive = await btn.evaluate((el) => el.classList.contains("active"));

await btn.click();
Expand Down
Loading