Skip to content

Generate a WCAG 2.2 AA Accessibility Test Suite with AI

Accessibility TestingUpdated 2026-10-21intermediate
TL;DR

Returns a comprehensive WCAG 2.2 AA test suite organized by Success Criterion (perceivable / operable / understandable / robust): each item with SC number, test method (manual / axe / Playwright @axe-core), pass criteria, and explicit coverage of WCAG 2.2's new criteria.

When to use it

  • Auditing accessibility on an existing product against WCAG 2.2 AA.
  • Building an accessibility test plan for a new feature or release.
  • Onboarding engineers to accessibility testing fundamentals.
  • Documenting accessibility coverage for compliance (EAA, ADA, AODA).

The prompt

XML-tagged: works best with Claude
wcag-2-2-aa-suite.claude.mdprompt
<role>You are an accessibility specialist. You cite WCAG Success Criteria by number (e.g., SC 1.4.3) and you know which criteria are automatable vs require manual judgment.</role> <context>WCAG 2.2 AA includes all 2.1 AA criteria EXCEPT SC 4.1.1 Parsing (obsolete and removed in 2.2: do not test it), PLUS 6 new criteria added in 2.2:- SC 2.4.11 Focus Not Obscured (Minimum): AA- SC 2.5.7 Dragging Movements: AA- SC 2.5.8 Target Size (Minimum): AA- SC 3.2.6 Consistent Help: A- SC 3.3.7 Redundant Entry: A- SC 3.3.8 Accessible Authentication (Minimum): AA Test methods:- **axe / Playwright @axe-core/playwright**: automated, roughly 20-40% of criteria- **Manual**: keyboard testing, screen reader, judgment-based criteria- **Mixed**: axe finds, human verifies Each Success Criterion has DEFINITIVE pass criteria, not opinions.</context> <task>For the application below, generate a WCAG 2.2 AA test suite organized by principle:1. **Perceivable** (Principle 1): covers SCs 1.x2. **Operable** (Principle 2): covers SCs 2.x3. **Understandable** (Principle 3): covers SCs 3.x4. **Robust** (Principle 4): covers SCs 4.x For each Success Criterion in scope, include:- SC number and name- Test method (axe / Manual / Mixed)- Pass criteria (specific, measurable)- Common failure pattern Explicitly cover the 6 new WCAG 2.2 criteria.</task> <input>Application description: {app}Tech stack and surface (web / mobile native / hybrid): {stack}Out-of-scope (specific components/pages): {out_of_scope}</input> <constraints>- SC numbers MUST be cited (e.g., "SC 1.4.3 Contrast Minimum").- Test method per item: axe / Manual / Mixed.- Pass criteria specific and measurable, not "looks accessible".- Include ALL 6 WCAG 2.2 new criteria.- Group by principle (Perceivable / Operable / Understandable / Robust).- Cover every A/AA criterion that applies; list skipped ones with the reason.- Coverage estimate (% automatable vs manual) at the end, computed from the rows you actually wrote.</constraints> <output_format>Markdown document with 4 H2 sections (one per principle), each containing a table: SC | Name | Test method | Pass criteria | Common failure. Followed by a "WCAG 2.2 new criteria highlights" section and a "Coverage summary" with automatable %.</output_format> <approach>Before writing, identify which Success Criteria are NOT applicable to this stack (e.g., audio criteria if no audio content): list as out-of-scope rather than padding the table.</approach>

Example

Input
Application description: SaaS dashboard with data tables, modals, forms, navigation, file uploads. No audio/video content.
Tech stack: React web app. No native mobile.
Out-of-scope: Marketing site (separate audit), email templates.
Output
# WCAG 2.2 AA Test Suite, SaaS Dashboard

## 1. Perceivable (Principle 1)

| SC | Name | Test method | Pass criteria | Common failure |
|----|------|-------------|---------------|----------------|
| 1.1.1 | Non-text Content (A) | Mixed | Every image/icon has `alt` attribute; decorative images have `alt=""`; CSS background images don't convey meaning | Generic alt="image" or empty alt on informative icons |
| 1.3.1 | Info and Relationships (A) | Mixed | Form labels associated via `<label for>` or aria-labelledby; headings use `<h1-6>` not styled `<div>`; lists use `<ul>/<ol>` | "Label" implemented as plain text near input, not associated |
| 1.3.2 | Meaningful Sequence (A) | Manual | DOM order matches visual order; screen reader reads logically | Floats / absolute positioning create visual order ≠ DOM order |
| 1.3.3 | Sensory Characteristics (A) | Manual | Instructions don't rely only on shape, position or color ("click the green button on the right") | "Use the icon on the left" with no text name |
| 1.3.4 | Orientation (AA) | Manual | Content works in both portrait and landscape orientations | Locks to landscape on tablet |
| 1.3.5 | Identify Input Purpose (AA) | axe | `autocomplete` attribute set for common fields (email, name, address) | Missing autocomplete on signup forms |
| 1.4.1 | Use of Color (A) | Manual | Information not conveyed by color alone (e.g., required fields have label, not just red border) | Validation indicated only by red outline |
| 1.4.3 | Contrast (Minimum) (AA) | axe | Text vs background contrast >= 4.5:1 (3:1 for large text >= 18pt or 14pt bold) | Light gray placeholder text on white |
| 1.4.4 | Resize Text (AA) | Manual | Text scales to 200% without loss of content/function | Layout breaks at 200% zoom |
| 1.4.5 | Images of Text (AA) | Manual | Text is real text, not baked into images (logos excepted) | Chart labels or banners exported as PNG |
| 1.4.10 | Reflow (AA) | Manual | Content reflows on 320px wide viewport without 2D scrolling | Data tables overflow horizontally |
| 1.4.11 | Non-text Contrast (AA) | axe | UI components (form borders, icons) >= 3:1 contrast | Subtle form input borders fail contrast |
| 1.4.12 | Text Spacing (AA) | Manual | Letter/word/line spacing adjustments don't clip content | Fixed-height container clips when line-height increases |
| 1.4.13 | Content on Hover or Focus (AA) | Manual | Hover-revealed content is dismissable (Esc), hoverable (mouse-over without dismissing), persistent | Tooltip closes on mouse-over the tooltip itself |

## 2. Operable (Principle 2)

| SC | Name | Test method | Pass criteria | Common failure |
|----|------|-------------|---------------|----------------|
| 2.1.1 | Keyboard (A) | Manual | All functionality reachable via keyboard | Custom dropdown not focusable |
| 2.1.2 | No Keyboard Trap (A) | Manual | Tab moves out of modals, menus, embeds | Modal focus trap doesn't release on close |
| 2.1.4 | Character Key Shortcuts (A) | Manual | Single-key shortcuts can be disabled or remapped (or only active on focus) | Single-key shortcuts active anywhere |
| 2.2.1 | Timing Adjustable (A) | Manual | Session timeout warns the user and lets them extend it (at least 20 s to respond) | Dashboard logs out mid-form with no warning |
| 2.2.2 | Pause, Stop, Hide (A) | Manual | Auto-updating content (live tables, carousels) can be paused | Live-refreshing table with no pause control |
| 2.3.1 | Three Flashes or Below Threshold (A) | Manual | Nothing flashes more than 3 times per second | Flashing error banner |
| 2.4.1 | Bypass Blocks (A) | Manual | "Skip to main content" link available at page start | No skip link; user tabs through 30 nav items |
| 2.4.2 | Page Titled (A) | axe | Each page has unique `<title>` reflecting content | Generic "Dashboard" title on every page |
| 2.4.3 | Focus Order (A) | Manual | Tab order matches visual layout / reading order | Floating action button gets focus in middle of form |
| 2.4.4 | Link Purpose (In Context) (A) | Mixed | Link text describes destination (avoid "click here") | "Learn more" links without context |
| 2.4.5 | Multiple Ways (AA) | Manual | More than one way to reach each page (nav + search or sitemap) | Pages reachable only through one nested menu |
| 2.4.6 | Headings and Labels (AA) | Mixed | Headings descriptive; labels concise + descriptive | Heading "Section" with no further detail |
| 2.4.7 | Focus Visible (AA) | Manual | Keyboard focus indicator clearly visible | `outline: none` removes focus ring with nothing to replace |
| **2.4.11** | **Focus Not Obscured (Minimum) (AA: NEW in 2.2)** | Manual | Focused element NOT completely hidden by sticky header / modal / chat widget | Floating chat button covers focused button |
| 2.5.1 | Pointer Gestures (A) | Manual | Multipoint or path gestures (pinch, swipe) have a single-pointer alternative | Chart zoom only by pinch |
| 2.5.2 | Pointer Cancellation (A) | Manual | Click events fire on `mouseup`, not `mousedown` (allows escape by moving) | Long-press triggers action on `mousedown` |
| 2.5.3 | Label in Name (A) | axe | Visible label text matches accessible name | "Search" button has aria-label "btn-srch" |
| 2.5.4 | Motion Actuation (A) | Manual | Tilt/shake actions have alternative method | Shake-to-undo with no Edit > Undo menu |
| **2.5.7** | **Dragging Movements (AA: NEW in 2.2)** | Manual | Drag-and-drop has single-pointer alternative (e.g., menu button to move) | Kanban only supports drag; no keyboard alternative |
| **2.5.8** | **Target Size (Minimum) (AA: NEW in 2.2)** | axe | Touch targets >= 24×24 CSS pixels (with exceptions for inline text links) | 16px close (×) button on modal |

## 3. Understandable (Principle 3)

| SC | Name | Test method | Pass criteria | Common failure |
|----|------|-------------|---------------|----------------|
| 3.1.1 | Language of Page (A) | axe | `<html lang="...">` set | Missing lang attribute |
| 3.1.2 | Language of Parts (AA) | axe | Passages in another language carry their own `lang` | Localised customer names read with the wrong voice |
| 3.2.1 | On Focus (A) | Manual | Focus doesn't change context (no auto-submit on focus) | Dropdown auto-submits on focus |
| 3.2.2 | On Input (A) | Manual | Input doesn't trigger context change without warning | Selecting from dropdown auto-navigates |
| 3.2.3 | Consistent Navigation (AA) | Manual | Repeated navigation appears in the same relative order on every page | Sidebar items reorder per section |
| 3.2.4 | Consistent Identification (AA) | Manual | Components with the same function have the same name everywhere | "Export" on one page, "Download" on another for the same action |
| **3.2.6** | **Consistent Help (A: NEW in 2.2)** | Manual | Help mechanism (chat widget, contact link) appears in same relative location across pages | Help link moves between header and footer |
| 3.3.1 | Error Identification (A) | Mixed | Validation errors identified in text near field | Errors only via color border |
| 3.3.2 | Labels or Instructions (A) | axe | Every form input has visible label or instruction | Placeholder-only "label" |
| 3.3.3 | Error Suggestion (AA) | Manual | Error messages suggest how to fix | "Invalid input" with no guidance |
| 3.3.4 | Error Prevention (Legal) (AA) | Manual | Submissions causing legal/financial consequences are reversible OR reviewable before commit | Direct delete with no confirmation |
| **3.3.7** | **Redundant Entry (A: NEW in 2.2)** | Manual | Multi-step forms don't ask same info twice (or auto-fill on re-entry) | Shipping address re-asked at billing step |
| **3.3.8** | **Accessible Authentication (Minimum) (AA: NEW in 2.2)** | Manual | Login doesn't require recall/cognitive function tests (CAPTCHA acceptable if alternatives provided) | CAPTCHA-only login with no alternative |

## 4. Robust (Principle 4)

| SC | Name | Test method | Pass criteria | Common failure |
|----|------|-------------|---------------|----------------|
| 4.1.2 | Name, Role, Value (A) | axe | Every interactive element has accessible name, correct role, and state communicated | Custom toggle without role="switch" |
| 4.1.3 | Status Messages (AA) | Manual | Dynamic status updates announced (aria-live, role="status") | Toast notification not announced by screen reader |

## WCAG 2.2 new criteria highlights

The 6 new criteria added in 2.2 disproportionately affect:
- **Dashboards with kanban/drag-drop**: must add keyboard alternative (SC 2.5.7)
- **Touch-friendly UIs**: minimum 24×24 px (SC 2.5.8)
- **Sticky-header layouts**: verify focused element not hidden by header (SC 2.4.11)
- **Multi-step forms**: avoid re-prompting same data (SC 3.3.7)
- **Login**: CAPTCHA must offer accessibility-friendly alternative (SC 3.3.8)
- **Help affordances**: "Help" must be in consistent location (SC 3.2.6)

## Coverage summary

- **49 A/AA criteria in scope**; the audio/video criteria (1.2.x, 1.4.2) are skipped because the app has no audio or video content.
- **10 axe-assisted** (~20%): contrast, autocomplete, lang, page title, label-in-name, target size, name/role/value
- **34 manual** (~69%): focus order, timeouts, hover behavior, reflow, most of the WCAG 2.2 additions
- **5 mixed** (~10%): alt text quality, labels and relationships, link purpose, headings, error identification

CI gates can enforce the 10 axe-assisted items per PR (axe flags failures; a person still confirms the passes). The manual criteria need per-feature sign-off plus a quarterly audit.

Common pitfalls

  • Model uses WCAG 2.1 criteria only and skips the 6 new 2.2 SCs: explicitly require them in constraints.
  • Test method defaults to 'manual' for everything: under-recognizes axe coverage.
  • Pass criteria gets vague ('looks accessible'); require measurable specifics.
  • Out-of-scope SCs (audio for text-only apps) get padded into the table; force out-of-scope to be acknowledged separately.

Tips

  • Run axe in CI on every PR to gate the axe-assisted criteria; cover the manual SCs per feature and in a quarterly audit.
  • Use Playwright @axe-core/playwright for component-level a11y testing: finds issues E2E doesn't see.
  • Pair with `keyboard-nav-test-cases` and `screen-reader-scenarios` for the manual portion.
  • Re-baseline annually; WCAG 3.0 is still a working draft, so 2.2 AA remains the target.

FAQ

WCAG 2.1 AA vs 2.2 AA differences?

2.2 adds 6 new criteria, mostly focused on cognitive accessibility and mobile/touch interfaces. If you're at 2.1 AA, the new criteria are small additions. EN 301 549, the standard behind the European Accessibility Act (enforced since June 2025), still references WCAG 2.1 AA, but its next revision is expected to move to 2.2 and many procurement contracts already ask for 2.2 AA, so testing against 2.2 covers both.

AA vs AAA in 2026?

AA is the legal baseline in most jurisdictions. AAA is aspirational for media-heavy apps or apps used by users with disabilities at scale. Don't pursue AAA if AA isn't solid: partial AAA without complete AA is worse than complete AA.

How much WCAG can axe automate?

Only a minority of criteria by count (about 20-40%, depending on how you score partial coverage), but a much larger share of real bugs by frequency (because automatable bugs, contrast, missing alt, missing labels, are extremely common). Don't think 'only 40%: manual covers the rest'. Run axe AND do manual; they catch different things.

Should I include Section 508 / EN 301 549?

Section 508 (US) references WCAG 2.0 AA and EN 301 549 (EU) references WCAG 2.1 AA for web content. WCAG 2.2 AA is a superset of both (only 4.1.1 Parsing was removed, as obsolete), so a 2.2 AA suite covers their web requirements; both standards add non-web clauses (documents, software, hardware) that need a separate check.