Testing Strategy

Accessibility testing decision trees, browser/AT compatibility matrices, manual vs. automated test coverage, regression testing patterns, and acceptance criteria templates for user stories.

Published by @Community-Access·from Community-Access/accessibility-agents·0 agent reads / 30d·0 saves·

Testing Strategy Skill

Decision frameworks for accessibility testing — when to use automated tools vs. manual testing, which screen reader + browser combinations to test, and how to write accessibility acceptance criteria.


Automated vs. Manual Testing Coverage

What Automated Tools Catch (~30-40%)What Requires Manual Testing (~60-70%)
Missing alt text on imagesAlt text quality and accuracy
Missing form labelsLabel clarity and helpfulness
Color contrast ratios (computed)Color contrast in context (gradients, images)
Missing lang attributeCorrect language identification
Duplicate IDsLogical reading order
Missing ARIA roles on custom widgetsCorrect ARIA role for the interaction pattern
Heading hierarchy violationsHeading text meaningfulness
Empty links and buttonsLink/button text descriptiveness
Missing table headersTable caption and header association quality
Syntax errors in ARIAScreen reader announcement correctness

Browser + Screen Reader Compatibility Matrix

Primary Test Combinations (Required)

Screen ReaderBrowserOSPriority
NVDAFirefoxWindowsMust test
NVDAChromeWindowsMust test
JAWSChromeWindowsMust test
VoiceOverSafarimacOSMust test
VoiceOverSafariiOSMust test
TalkBackChromeAndroidShould test

Secondary (Nice to Have)

Screen ReaderBrowserOS
NarratorEdgeWindows
JAWSEdgeWindows

Testing Decision Tree

Is it a new component or page?
├── Yes → Full test coverage (automated + manual)
│   ├── Run axe-core / Lighthouse scan
│   ├── Keyboard-only navigation test
│   ├── Screen reader announcement test (NVDA + VoiceOver minimum)
│   └── Visual check at 200% zoom
└── No → What changed?
    ├── Colors/styling → Contrast check + visual review
    ├── Interactive behavior → Keyboard + screen reader test
    ├── Content/text → Screen reader announcement check
    ├── Layout/order → Reading order + focus order test
    └── Dependencies updated → Regression scan (axe-core)

Regression Testing Patterns

CI Pipeline Accessibility Gates

  1. axe-core scan: Run on every PR. Fail on new critical/serious violations.
  2. Baseline management: Store known issues in .a11y-baseline.json. Only fail on new issues.
  3. Lighthouse score threshold: Set minimum accessibility score (e.g., 90). Fail on regression.
  4. Visual regression: Capture screenshots at 200% zoom. Compare for focus indicator and layout changes.

Preventing Regressions

  • Add accessibility assertions to existing component tests (see testing-accessibility.instructions.md)
  • Include keyboard navigation in E2E test suites
  • Track accessibility score trends over time (not just pass/fail)

Acceptance Criteria Template

For User Stories

Given [context],
When [action by keyboard/mouse/screen reader],
Then [accessible outcome]:

- [ ] Component has an accessible name (via label, aria-label, or aria-labelledby)
- [ ] Component has the correct ARIA role
- [ ] Component is reachable and operable by keyboard (Tab, Enter, Space, Escape, Arrows as appropriate)
- [ ] Focus is visible when the component receives focus
- [ ] State changes are announced to screen readers (aria-expanded, aria-selected, aria-checked, etc.)
- [ ] Error messages are associated with their inputs (aria-describedby or aria-errormessage)
- [ ] Content is readable at 200% zoom without horizontal scrolling
- [ ] Color is not the only means of conveying information

Common Testing Tools

ToolTypeBest For
axe-core / @axe-core/cliAutomatedCI/CD integration, broad violation scan
LighthouseAutomatedPerformance + accessibility combined score
WAVESemi-automatedVisual overlay of accessibility features/issues
Accessibility InsightsSemi-automatedFastPass (automated) + Assessment (guided manual)
pa11yAutomatedCI/CD, HTML CodeSniffer rules
jest-axeUnit testComponent-level axe scans in jest
cypress-axeE2E testPage-level axe scans in Cypress
playwright + @axe-core/playwrightE2E testPage-level axe scans in Playwright

Screen Reader Testing Quick Reference

NVDA (Windows)

KeyAction
Insert + SpaceToggle focus/browse mode
TabMove to next focusable element
HNext heading
DNext landmark
FNext form field
TNext table
Insert + F7Elements list (links, headings, landmarks)

VoiceOver (macOS)

KeyAction
VO (Ctrl+Option) + RightMove to next element
VO + SpaceActivate current element
VO + UOpen rotor (navigate by type)
VO + Cmd + HNext heading

More on the bench

SKILL0

Fixing Metadata

Audit and fix HTML metadata including page titles, meta descriptions, canonical URLs, Open Graph tags, Twitter cards, favicons, JSON-LD structured data, and robots directives. Use when adding SEO metadata, fixing social share previews, reviewing Open Graph tags, setting up canonical URLs, or shipping new pages that need correct meta tags.

ux-product-design+1
29
SKILL0

Pptx Slide Auditor

Audit a PowerPoint presentation for layout issues, text overflow, visual hierarchy problems, and consistency gaps. Use when asked to review a slide deck, check a presentation before a meeting, audit slides for layout problems, or QA a deck before sharing. Produces a slide-by-slide report with issues ranked by severity and specific fixes. Best used with Claude Opus 4.7 or newer for reliable slide-level vision analysis.

product-management+1
3
SKILL0

Design Critique

Gives structured, constructive feedback on any design using UX frameworks. Use when asked to critique a design, review a UI, give feedback on a Figma file or wireframe, assess a user flow, or evaluate a design against UX principles. Applies Jobs-to-be-Done, Gestalt principles, and usability heuristics to give actionable feedback with prioritised issues and specific recommendations.

ux-product-design+1
2