mcpField
T
testing-strategy

testing-strategy

github.com/community-accessTesting & quality431215 installsUpdated 1d ago
Repository

About testing-strategy

An accessibility testing strategy skill for deciding when to use automated or manual tests, selecting screen reader and browser combinations, and writing acceptance criteria. It also describes regression-testing patterns and common testing tools.

Key features

  1. 01Automated versus manual coverage guidance
  2. 02Screen reader and browser matrix
  3. 03Testing decision tree
  4. 04CI accessibility gates
  5. 05Acceptance criteria template
  6. 06Tool reference

Use cases

  1. 01Planning tests for a new component
  2. 02Selecting assistive technology test combinations
  3. 03Adding accessibility checks to CI
  4. 04Writing accessibility acceptance criteria

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/community-access/accessibility-agents --skill testing-strategy

After installing, type/testing-strategyin Claude Code to confirm it loaded.

Details

From the project README

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

Comments

Markdown supported