test(web-next): add Playwright config + smoke specs (home, about, blog 404)

This commit is contained in:
2026-05-05 09:25:42 +02:00
parent 22bee5362f
commit 106e5c2737
8 changed files with 135 additions and 21 deletions

View File

@@ -0,0 +1,10 @@
import { test, expect } from "@playwright/test";
test("/about renders the about marketing page", async ({ page }) => {
await page.goto("/about");
// Either renders the seeded page (h1 = "About us") or "not yet published" message
// — both are HTTP 200, so the test only checks it doesn't 500.
const status = (await page.context().request.get("/about")).status();
expect(status).toBe(200);
await expect(page.locator("body")).toBeVisible();
});