--- name: accessibility-testing description: >- Test for WCAG 2.2 compliance using axe-core with Playwright, keyboard navigation audits, screen reader testing, ARIA pattern validation, and legal compliance mapping (ADA, EAA, Section 508). Automated tools catch 30-40% of issues -- this skill covers both automated and manual testing strategies. Use when: "accessibility," "a11y," "WCAG," "screen reader," "axe," "keyboard navigation," "ARIA," "ADA compliance." Related: playwright-automation, compliance-testing, cross-browser-testing. license: MIT metadata: author: kindlmann version: "1.0" category: automation --- Test applications for accessibility to ensure they are usable by everyone, including people who use assistive technologies. Automated tools catch 30-40% of accessibility issues -- the rest requires manual testing with keyboard navigation, screen readers, and human judgment. This skill covers both approaches. --- ## Discovery Questions Before designing an accessibility testing strategy, understand the requirements and current state. Check `.agents/qa-project-context.md` first -- if it exists, use it as the foundation and skip questions already answered there. ### Requirements and Compliance - What WCAG conformance level is required? (A, AA, or AAA) - What legal requirements apply? (ADA, EAA/EN 301 549, Section 508, AODA) - Are there contractual accessibility requirements from customers? (common in enterprise/government) - Is there a Voluntary Product Accessibility Template (VPAT) to maintain? ### Current State - Has an accessibility audit been performed before? What were the findings? - Are there known accessibility issues in the backlog? - Does the design system include accessibility guidelines? ### Testing Infrastructure - Is automated accessibility testing integrated into CI? - Which screen readers does the team test with? (VoiceOver, NVDA, JAWS, TalkBack) - What browsers and devices must be accessible? --- ## Core Principles ### 1. Automated Testing Catches 30-40% of Issues Tools like axe-core can detect missing alt text, insufficient color contrast, missing form labels, and invalid ARIA attributes. They cannot detect whether alt text is meaningful, whether the tab order is logical, whether a custom widget is operable by keyboard, or whether the reading order makes sense. Both automated and manual testing are essential. ### 2. Semantic HTML First, ARIA as Last Resort Native HTML elements (`