Watch what a beforeAll logs, and record where each message came from
CI / full-gate (push) Successful in 2m48s

This commit is contained in:
2026-08-05 11:15:37 +02:00
parent e808f87fbd
commit 690d67728b
6 changed files with 22 additions and 11 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ test("the public landing at / is ungated and links to sign in + register", async
});
test("unknown routes serve the 404 page (a real user-facing flow, covered end-to-end)", async ({ page }) => {
allowConsole(/status of 404/); // Chromium and WebKit log the status of the navigation under test
allowConsole(/status of 404 .*\/no-such-page$/); // the navigation under test, which Chromium and WebKit log — not a sub-resource of it
const res = await page.goto("/no-such-page");
expect(res?.status()).toBe(404);
await expect(page.getByRole("heading", { name: "Page not found" })).toBeVisible();