SoftwareTestPilot
Manual TestingPublished: Updated: · 3 days ago9 min read

Accessibility Testing WCAG Guide: Complete Handbook

Complete WCAG accessibility testing guide. WCAG 2.2 levels, POUR principles, axe-core, screen reader testing, keyboard navigation, CI/CD integration, and legal compliance.

Avinash Kamble
Avinash Kamble
Founder & QA Engineer at SoftwareTestPilot
Reviewed by Priyanka G.
Share:XLinkedInWhatsApp
Accessibility testing WCAG guide cover — browser audit illustration with eye, ear, keyboard Tab key, hand cursor, screen reader speech bubble, WCAG 2.2 AA badge, and 4.5:1 contrast chip on a dark navy background.
Accessibility testing WCAG guide cover — browser audit illustration with eye, ear, keyboard Tab key, hand cursor, screen reader speech bubble, WCAG 2.2 AA badge, and 4.5:1 contrast chip on a dark navy background.
In this article
  1. Why accessibility testing matters
  2. WCAG 2.2 quick reference
  3. The four principles (POUR)
  4. Testing tools
  5. How to test accessibility
  6. Accessibility test cases (template)
  7. Integrating accessibility into CI/CD
  8. Legal requirements by region
  9. Common accessibility mistakes
  10. Continue your accessibility journey
  11. Frequently asked questions

Last updated: June 29, 2026 · 9 min read · By SoftwareTestPilot Editorial Team

Accessibility testing is now a legal requirement in many jurisdictions. This guide gives you the WCAG framework, testing tools, and best practices. For broader context, see our Manual Testing Tutorial and AI Testing Tools guides.

Why accessibility testing matters

  • Legal requirement — ADA, EAA, Section 508, and AODA enforce WCAG compliance.
  • 15–20% of users have some form of disability.
  • SEO benefit — accessible sites rank higher.
  • Better UX for everyone — accessibility improves usability for all.
  • Business risk — non-compliance can cost $100k+ in lawsuits.

WCAG 2.2 quick reference

WCAG (Web Content Accessibility Guidelines) has three conformance levels:

LevelDescriptionTarget
AMinimum accessibilityAll sites
AAIndustry standardMost sites (required by most laws)
AAAGold standardSpecialized sites

Most legal frameworks require AA conformance.

The four principles (POUR)

Perceivable

Information must be presentable in ways users can perceive.

GuidelineExample test
Text alternatives for images<img alt="..."> on every image
Captions for videos<video> has <track kind="captions">
Color contrast ≥ 4.5:1WebAIM contrast checker
Resizable text up to 200%Browser zoom without breaking layout

Operable

Interface must be operable by all users.

GuidelineExample test
Keyboard accessibleTab through all interactive elements
No keyboard trapsFocus can move away from any element
Skip navigation links“Skip to main content” present
Focus visibleFocused element has a clear outline

Understandable

Information and UI must be understandable.

GuidelineExample test
Language declared<html lang="en">
Consistent navigationSame nav across pages
Input assistanceForms have labels and error messages
Error identificationErrors clearly explained, not “Invalid input”

Robust

Content must work with assistive technologies.

GuidelineExample test
Valid HTMLPasses the W3C validator
ARIA labelsComplex widgets have proper ARIA
Status messages announcedrole="status" for dynamic content
Screen reader compatibilityNVDA, JAWS, VoiceOver tests

Testing tools

Automated tools (catch 30–50% of issues)

ToolTypeFree tier
axe-coreOpen-source libraryFree
axe DevToolsBrowser extensionFree + paid
LighthouseChrome built-inFree
WAVEBrowser extensionFree
Pa11yCLI toolFree
Axe RunnerCI integrationPaid

Manual testing tools

ToolPurpose
Screen reader (NVDA, JAWS, VoiceOver)Test with assistive tech
Keyboard onlyTab through without mouse
Screen magnifierTest with 200% zoom
High contrast modeTest in Windows High Contrast
Color contrast analyzerVerify WCAG color ratios

Screen readers by platform

Screen readerPlatformCost
NVDAWindowsFree
JAWSWindows$90/license
VoiceOvermacOS / iOSFree (built-in)
TalkBackAndroidFree (built-in)
ChromeVoxChrome OSFree

How to test accessibility

Step 1 — Automated scan

# Using axe-core CLI
npm install -g @axe-core/cli
axe https://example.com

# Using Lighthouse
npx lighthouse https://example.com --only-categories=accessibility

Step 2 — Keyboard testing

  1. Unplug mouse (or use only keyboard).
  2. Tab through every page.
  3. Verify all interactive elements are reachable.
  4. Verify the focus indicator is visible.
  5. Verify there are no keyboard traps.
  6. Test Enter/Space activation.

Step 3 — Screen reader testing

  1. Enable a screen reader (NVDA on Windows, VoiceOver on Mac).
  2. Navigate using screen reader only.
  3. Verify all images have alt text.
  4. Verify form fields have labels.
  5. Verify headings are properly nested.
  6. Verify dynamic content is announced.

Step 4 — Visual testing

  1. Zoom to 200% — no horizontal scrolling.
  2. Test with high contrast mode.
  3. Test color contrast with WebAIM checker.
  4. Verify focus indicators are visible.

Accessibility test cases (template)

TC_A11Y_001 — All images have alt text

  1. Open browser.
  2. Navigate each page.
  3. Inspect every image.
  4. Verify <img alt="..."> or role="img" aria-label="...".

TC_A11Y_002 — Forms have labels

  1. Open each form.
  2. Verify each input has an associated <label>.
  3. Verify required fields have aria-required="true".

TC_A11Y_003 — Color contrast meets WCAG AA

  1. Use the WebAIM contrast checker.
  2. Verify normal text ≥ 4.5:1.
  3. Verify large text (≥18pt) ≥ 3:1.

TC_A11Y_004 — Keyboard navigation works

  1. Tab from top to bottom of the page.
  2. Verify all interactive elements are reachable.
  3. Verify the focus indicator is visible.
  4. Press Enter/Space on each focused element.

TC_A11Y_005 — Screen reader announces dynamic content

  1. Trigger a dynamic update (e.g. search results).
  2. Verify the screen reader announces the update.
  3. Verify aria-live="polite" or aria-live="assertive" is used appropriately.

Integrating accessibility into CI/CD

# GitHub Actions
- name: Accessibility scan
  run: |
    npm ci
    npx pa11y-ci --config pa11y.json

# Or using axe-core in tests
- name: Run accessibility tests
  run: npm run test:a11y

For broader CI/CD patterns, see our CI/CD Pipeline Testing Tutorial and GitHub Actions for Automation Testing guide.

Common accessibility mistakes

Mistake 1 — Adding alt text to decorative images

Decorative images should have alt="", not descriptive alt text. Screen readers will skip them.

Mistake 2 — Using color alone to convey meaning

Color-blind users can't distinguish red from green. Use icons, labels, or patterns in addition to color.

Mistake 3 — Missing form labels

<!-- BAD -->
<input type="email" placeholder="Email" />

<!-- GOOD -->
<label for="email">Email address</label>
<input id="email" type="email" />

Mistake 4 — No keyboard alternatives

Every mouse-driven action must have a keyboard equivalent. Test with Tab and arrow keys.

Mistake 5 — Low contrast colors

/* BAD */
color: #ccc;
background: #fff; /* contrast 1.6:1 */

/* GOOD */
color: #595959;
background: #fff; /* contrast 7:1 */

Mistake 6 — Auto-playing audio/video

Disorienting for screen reader users. Always provide a way to pause.

Mistake 7 — Missing skip navigation

Add a “Skip to main content” link as the first focusable element. Critical for keyboard users.

Mistake 8 — Aggressive form timeouts

Don't auto-logout users with disabilities. Warn first and allow extension.

Frequently asked questions

What is WCAG?

WCAG (Web Content Accessibility Guidelines) is the international standard for web accessibility, published by the W3C.

What's the latest WCAG version in 2026?

WCAG 2.2 — published October 2023. Most jurisdictions currently require AA conformance.

Is accessibility testing automated or manual?

Both. Automated tools catch roughly 30–50% of issues. Manual testing with screen readers and keyboard-only navigation catches the rest.

Which accessibility tool is best in 2026?

axe-core for automated scanning. NVDA (Windows) or VoiceOver (Mac) for screen reader testing. All are free.

Is accessibility testing a legal requirement?

Yes — in most jurisdictions (USA ADA, EU EAA, Canada AODA, UK Equality Act). Non-compliance can result in lawsuits.

How do I get started with accessibility testing?

1) Run the axe DevTools extension on your site. 2) Fix the issues it reports. 3) Test using only the keyboard. 4) Test with a screen reader.

Keep going

Practice these questions

Run a live QA mock interview tailored to this topic and get per-skill scoring in minutes.

Found this useful?
Share:XLinkedInWhatsApp

Was this article helpful?

Keep building your QA edge

Continue reading

Join the QA Community

Connect with fellow testers, share job leads, and get career advice.

Premium QA Resources

Stop Reinventing the Wheel. Upgrade Your QA Arsenal.

Take your testing skills from beginner to Lead Engineer. Supercharge your daily workflow with our premium digital resources.

  • ⚡ Ready-to-use testing strategy templates
  • 🔥 Advanced API & UI automation guides
  • ⏱️ Save 10+ hours a week on test planning
4.9/5 rating
Explore All Products

⭐⭐⭐⭐⭐ Trusted by 1,000+ Software Test Pilots • Instant Access