test: expand exporter/css/a11y/i18n regressions and add e2e skip-link focus check
CI / test (pull_request) Successful in 52s
CI / test (pull_request) Successful in 52s
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user