test: expand exporter/css/a11y/i18n regressions and add e2e skip-link focus check

This commit is contained in:
2025-11-14 20:10:50 +09:00
parent d6510e2b05
commit 602f1eabde
26 changed files with 979 additions and 13 deletions
+8
View File
@@ -0,0 +1,8 @@
// Inspector a11y helper: verify input ↔ helptext wiring via aria-describedby
import { expect } from 'vitest'
export function assertDescribedBy(input: HTMLElement, helpId: string) {
expect(input).toHaveAttribute('aria-describedby', helpId)
const help = (input.ownerDocument || document).getElementById(helpId)
expect(help).not.toBeNull()
}