diff --git a/e2e/trip.spec.ts b/e2e/trip.spec.ts index 23c1e79..87ed8ee 100644 --- a/e2e/trip.spec.ts +++ b/e2e/trip.spec.ts @@ -67,7 +67,7 @@ test.describe("desktop", { tag: "@desktop" }, () => { test("journey mode renders the seeded demo photo pipeline", async ({ page }) => { await page.goto("/"); await page.getByRole("button", { name: /Day 1: Reine arrival/ }).click(); - await page.getByRole("button", { name: "Open Journey Mode" }).click(); + await page.getByRole("button", { name: "Relive the journey" }).first().click(); await expect(page.getByText("Reine harbor at golden hour")).toBeVisible(); await expect(page.getByRole("img", { name: "Reine harbor at golden hour" })).toBeVisible(); const uploaderFilter = page.getByRole("combobox", { name: "Filter journey by uploader" }); diff --git a/playwright.config.ts b/playwright.config.ts index 15c0ab5..56ba754 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -26,6 +26,9 @@ export default defineConfig({ env: { // Demo-mode flag is inlined at build time and only honored on localhost. NEXT_PUBLIC_LOCAL_DEMO_MODE: "1", + // Keep mapless assertions deterministic even when a developer's + // .env.local contains a real token. + NEXT_PUBLIC_MAPBOX_TOKEN: "", NEXT_DIST_DIR: ".next-e2e", PORT: "3100", },