Added sitemap, with filtering of disabled pages, removal of content from disabled pages, robots.txt generation pointing to the sitemap, adjustment of the Navbar generation to ignore disabled entries, e2e check for all pages including a non-blank title, content for body mods page
This commit is contained in:
@@ -4,8 +4,14 @@ import {getPaths} from "@data/site-layout.ts";
|
||||
|
||||
|
||||
for (const pagePath of getPaths()) {
|
||||
test(`${pagePath} Navigable`, async ({page}) => {
|
||||
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);
|
||||
console.log(await page.title());
|
||||
expect(await page.title()).not.toBe("Corwin Perren")
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user