diff --git a/tests/ui/accessibility.spec.js b/tests/ui/accessibility.spec.js new file mode 100644 index 0000000..224a129 --- /dev/null +++ b/tests/ui/accessibility.spec.js @@ -0,0 +1,12 @@ +// @ts-check +// Tests: A1–A5 (feature checks) and AX1–AX5 (axe scans) +const { test, expect } = require('@playwright/test'); + +// ── A1: Skip link ────────────────────────────────────────────────────────────── +test('A1: skip link targets #main-content and is first focusable element', async ({ page }) => { + await page.goto('/'); + const skipLink = page.locator('.skip-link'); + await expect(skipLink).toBeAttached(); + await expect(skipLink).toHaveAttribute('href', '#main-content'); + await expect(page.locator('#main-content')).toBeAttached(); +}); diff --git a/user b/user index ffcf156..a7786f2 160000 --- a/user +++ b/user @@ -1 +1 @@ -Subproject commit ffcf15628929f92423706754e5988bbabee25e20 +Subproject commit a7786f263fbee59406d2586c6c9610ef228f4484