Add in the loop test for navigable pages, plus test workflow
Some checks failed
Build and Test - Staging / test (pull_request) Failing after 27s
Build and Test - Staging / build_and_push (pull_request) Has been skipped
Build and Test - Staging / deploy_staging (pull_request) Has been skipped

This commit is contained in:
2025-11-09 15:45:15 -08:00
parent 6bb862e6e5
commit 2d7f2904a8
8 changed files with 131 additions and 99 deletions

View File

@@ -0,0 +1,11 @@
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();
});
}