Files
caperren-com/test-e2e/static-pages.spec.ts
Corwin Perren 4a59e44716
Some checks failed
Build and Test - Staging / test (pull_request) Failing after 2m35s
Build and Test - Staging / build_and_push (pull_request) Has been skipped
Build and Test - Staging / deploy_staging (pull_request) Has been skipped
Started refactoring, added prettier and checks and reformatted project, added cspell and checks and custom project words, beginning of robotic oceanographic surface sampler content
2025-11-30 15:48:36 -08:00

16 lines
443 B
TypeScript

import { test, expect } from "@playwright/test";
import { getPaths } from "@data/site-layout.ts";
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");
});
}