Implement BS-008 privacy draft and public prerendering

This commit is contained in:
rob
2026-11-12 09:19:30 +00:00
parent 855913ccf6
commit ebfb10d91e
19 changed files with 216 additions and 46 deletions
+7
View File
@@ -28,6 +28,13 @@ test('public shell has accessible landmarks and first keyboard skip link', async
expect((await new AxeBuilder({ page }).analyze()).violations).toEqual([])
})
test('privacy draft is accessible and excluded from indexing', async ({ page }) => {
await page.goto('/privacy')
await expect(page.locator('meta[name="robots"]')).toHaveAttribute('content', 'noindex, nofollow')
await expect(page.getByRole('heading', { name: 'Project enquiries' })).toBeVisible()
expect((await new AxeBuilder({ page }).analyze()).violations).toEqual([])
})
test('navigation works and closes on mobile selection', async ({ page, isMobile }) => {
await page.goto('/')
const navigation = page.getByRole('navigation', { name: 'Main navigation' })