Implement BS-008 privacy draft and public prerendering
This commit is contained in:
@@ -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' })
|
||||
|
||||
Reference in New Issue
Block a user