Accessibility Test Generator
When to Trigger
- •UI component creation
- •"Test accessibility"
- •Before production deploy
What to Do
- •axe: Inject axe and run checkA11y on page or container; fail on violations; use detailed report in dev.
- •Keyboard: Tab through interactive elements; assert focus order and Enter/Space on buttons.
- •ARIA: Errors with role="alert" and aria-live; modals with role="dialog" and focus trap (Tab wraps inside).
- •Headings: Check hierarchy (no skipped levels); list headings in order.
Use axe-playwright or jest-axe; run in E2E or component tests. Fix critical/serious first; document any intentional exceptions.