Files
caperren-com/test-e2e/static-pages.spec.ts
Corwin Perren 3aa75e1a10
Some checks failed
Build and Test - Staging / test (pull_request) Failing after 2m31s
Build and Test - Staging / build_and_push (pull_request) Has been skipped
Build and Test - Staging / deploy_staging (pull_request) Has been skipped
LeConte deployments page complete, better auto-formatting and import sorting, new inline link, popover definitions, and paragraph components, improvements to component interfaces
2025-12-05 01:02:18 -08:00

15 lines
442 B
TypeScript

import { getPaths } from "@data/site-layout.ts";
import { expect, test } from "@playwright/test";
for (const pagePath of getPaths()) {
test(`${pagePath}: Navigable`, async ({ page }) => {
const response = await page.request.get(pagePath);
await expect(response).toBeOK();
});
test(`${pagePath}: Has Title`, async ({ page }) => {
await page.goto(pagePath);
expect(await page.title()).not.toBe("Corwin Perren");
});
}