From eb7d91d7dc5c7457abcbfb8bde03ccca6f03615e Mon Sep 17 00:00:00 2001 From: Nathan Toups Date: Thu, 21 May 2026 06:47:40 -0600 Subject: [PATCH] fix(e2e): match simplified landing page in navigation tests The landing page was simplified in 171ffa7 to surface only an 'Experiments' link, but the navigation suite still expected a direct 'Prime Moments' link on /. Update the two failing tests to walk the current path: / -> /x -> /x/prime-moments. --- e2e/navigation.spec.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/e2e/navigation.spec.ts b/e2e/navigation.spec.ts index ca81cb3..1d87a42 100644 --- a/e2e/navigation.spec.ts +++ b/e2e/navigation.spec.ts @@ -1,11 +1,11 @@ import { expect, test } from "@playwright/test"; test.describe("top-level navigation", () => { - test("home page renders and links to prime moments", async ({ page }) => { + test("home page renders and links to experiments", async ({ page }) => { await page.goto("/"); await expect(page).toHaveTitle("func.lol"); - const link = page.getByRole("link", { name: "Prime Moments" }); + const link = page.getByRole("link", { name: "Experiments" }); await expect(link).toBeVisible(); }); @@ -17,10 +17,13 @@ test.describe("top-level navigation", () => { await expect(card).toBeVisible(); }); - test("home -> prime moments navigation", async ({ page }) => { + test("home -> experiments -> prime moments navigation", async ({ page }) => { await page.goto("/"); - await page.getByRole("link", { name: "Prime Moments" }).click(); + await page.getByRole("link", { name: "Experiments" }).click(); + await page.waitForURL("/x"); + + await page.getByRole("link", { name: /prime moments/i }).click(); await page.waitForURL("/x/prime-moments"); await expect(page.locator("h1")).toContainText("Prime");