test(a11y): add A1 skip link test

This commit is contained in:
2026-06-20 20:19:30 +02:00
parent f63912d874
commit 1e28081b31
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
// @ts-check
// Tests: A1A5 (feature checks) and AX1AX5 (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();
});
+1 -1
Submodule user updated: ffcf156289...a7786f263f