16 lines
443 B
TypeScript
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");
|
|
});
|
|
}
|