Accessibility & Testing

Mastering Accessibility Testing: Build Inclusive Digital Experiences That Everyone Can Use

A comprehensive guide to accessibility testing from beginner to advanced level, covering WCAG compliance, keyboard navigation, screen readers, automated testing, and real-world examples that will help you build truly inclusive digital experiences.

Kumudu Gunarathne Kumudu Gunarathne
November 15, 2025 15 min read

Introduction

In today's digital landscape, accessibility testing has evolved from a nice-to-have feature to a fundamental requirement for web and mobile applications. With over 1 billion people worldwide living with some form of disability, ensuring your digital products are accessible isn't just about compliance-it's about creating inclusive experiences that serve all users effectively.

Accessibility testing evaluates whether people with disabilities can use your application with the same ease and efficiency as those without disabilities. This comprehensive guide will take you from the foundational concepts to advanced testing strategies, complete with real-world examples and actionable insights.

Understanding Web Accessibility: The Foundation

What is Accessibility (A11y)?

The term "a11y" is a numeronym where "11" represents the eleven letters between 'a' and 'y' in "accessibility." At its core, accessibility ensures that digital content and applications can be:

  • Perceivable: Users can perceive the information being presented
  • Operable: Users can operate the interface and navigate the content
  • Understandable: Users can understand the information and interface operation
  • Robust: Content can be reliably interpreted by various assistive technologies

These four principles form the foundation of the Web Content Accessibility Guidelines (WCAG), the international standard for web accessibility.

Why Accessibility Testing Matters

Consider these compelling scenarios:

Real-World Example 1: In 2019, Domino's Pizza faced a landmark Supreme Court case when a blind customer couldn't order pizza through their website or mobile app using screen reader technology. The case highlighted that inaccessible digital experiences can result in legal consequences and lost revenue.

Real-World Example 2: Target Corporation settled a class-action lawsuit for $6 million in 2008 for having an inaccessible website. Beyond the financial impact, the reputational damage affected their brand perception for years.

Real-World Example 3: During the COVID-19 pandemic, many vaccination appointment websites were inaccessible to people with disabilities, preventing them from scheduling potentially life-saving appointments. This real-world failure demonstrated how accessibility issues can have severe health and safety implications.

WCAG Compliance Levels: Your Testing Roadmap

WCAG defines three conformance levels that serve as benchmarks for your testing efforts:

Level A (Minimum)

The most basic web accessibility features. Failure to meet Level A means some user groups will find it impossible to access your content.

Example: Providing text alternatives for images. Without this, a blind user using a screen reader would encounter an image and hear nothing, breaking their understanding of the content flow.

Level AA (Mid-range)

The most commonly targeted level, addressing the biggest and most common barriers. Most legal requirements reference Level AA compliance.

Example: Ensuring color contrast ratios of at least 4.5:1 for normal text. A user with low vision or color blindness needs sufficient contrast to read content comfortably.

Level AAA (Highest)

The highest level of accessibility, though not always achievable for all content.

Example: Providing sign language interpretation for all video content, which may not be feasible for all organizations but significantly improves accessibility for deaf users who use sign language as their primary communication method.

Essential Accessibility Testing Categories

1. Keyboard Navigation Testing

Many users cannot use a mouse due to motor disabilities, relying entirely on keyboard navigation. Your application must be fully operable using only keyboard inputs.

Testing Approach:

  • Unplug your mouse or disable your trackpad
  • Navigate through your entire application using only Tab, Shift+Tab, Enter, Space, and arrow keys
  • Verify that focus indicators are clearly visible
  • Ensure no keyboard traps exist (user can always navigate away from any element)

Real-World Example: A financial services company discovered during accessibility testing that their loan application form had a custom dropdown that trapped keyboard focus. Users could tab into the dropdown but couldn't escape it without a mouse, making the form completely unusable for keyboard-only users. After fixing this issue, they saw a 15% increase in form completion rates.

Common Issues to Check:

  • Hidden or invisible focus indicators
  • Illogical tab order that doesn't follow visual flow
  • Keyboard shortcuts that conflict with assistive technology
  • Interactive elements that aren't reachable via keyboard

2. Screen Reader Testing

Screen readers convert digital text into synthesized speech or braille, enabling blind users to access content. Testing with screen readers is crucial for identifying issues that visual testing alone would miss.

Popular Screen Readers:

  • NVDA (NonVisual Desktop Access) - Free, Windows
  • JAWS (Job Access With Speech) - Commercial, Windows
  • VoiceOver - Built-in, macOS and iOS
  • TalkBack - Built-in, Android

Testing Approach:

Start with basic navigation:

  • Use heading navigation (H key in NVDA/JAWS)
  • Navigate by landmarks (D key for landmarks)
  • Navigate by forms (F key for form fields)
  • Navigate by links (K key for links)

Real-World Example: An e-commerce site discovered their product images had alt text like "IMG_20230115_142536.jpg" instead of descriptive text like "Red leather handbag with gold chain strap." Screen reader users couldn't understand what products they were viewing, resulting in high bounce rates from this user segment.

Common Screen Reader Issues:

  • Missing or poor alt text for images
  • Form fields without proper labels
  • Dynamic content updates not announced
  • Improper heading hierarchy (skipping from h1 to h3)
  • Tables without proper header associations

3. Color Contrast and Visual Testing

Color contrast testing ensures that text and interactive elements are distinguishable for users with low vision or color blindness.

WCAG Requirements:

  • Normal text: Minimum 4.5:1 contrast ratio (Level AA)
  • Large text (18pt+): Minimum 3:1 contrast ratio (Level AA)
  • User interface components: Minimum 3:1 contrast ratio

Testing Tools:

  • Chrome DevTools (built-in contrast checker)
  • WebAIM's Contrast Checker
  • Colour Contrast Analyser (desktop application)

Real-World Example: A healthcare portal used light gray text (#767676) on a white background for critical patient instructions. The contrast ratio was only 3.2:1, failing WCAG AA standards. After changing to darker text (#595959, ratio 7:1), customer support calls about "missing information" decreased by 40%.

Advanced Visual Considerations:

  • Test with color blindness simulators (affecting ~8% of males, ~0.5% of females)
  • Verify information isn't conveyed by color alone
  • Check hover and focus states have sufficient contrast
  • Test with high contrast mode enabled (Windows)

4. Semantic HTML and ARIA Testing

Proper semantic HTML and ARIA (Accessible Rich Internet Applications) attributes provide meaning and context to assistive technologies.

Semantic HTML Best Practices:

<!-- BAD: Non-semantic markup -->
<div class="button" onclick="submitForm()">Submit</div>
<div class="heading">Page Title</div>

<!-- GOOD: Semantic markup -->
<button type="submit" onclick="submitForm()">Submit</button>
<h1>Page Title</h1>

ARIA Landmarks Example:

<header role="banner">
  <nav role="navigation" aria-label="Main navigation">
    <!-- Navigation items -->
  </nav>
</header>

<main role="main">
  <article role="article">
    <!-- Main content -->
  </article>
</main>

<footer role="contentinfo">
  <!-- Footer content -->
</footer>

Real-World Example: A news website had article pages using <div> elements instead of <article> tags, and their navigation was built with <div> instead of <nav>. Screen reader users couldn't quickly jump to the main article content or navigate between articles efficiently. After implementing proper semantic HTML and ARIA landmarks, time-on-site for screen reader users increased by 60%.

ARIA Rules to Remember:

  1. No ARIA is better than bad ARIA
  2. Use native HTML elements whenever possible
  3. Don't override native semantics
  4. All interactive elements need accessible names
  5. ARIA should enhance, not replace, semantic HTML

5. Form Accessibility Testing

Forms are critical interaction points where accessibility issues can prevent users from completing essential tasks like purchasing products, signing up for services, or submitting applications.

Key Form Testing Areas:

Labels and Instructions:

<!-- BAD: Placeholder as label -->
<input type="email" placeholder="Email Address">

<!-- GOOD: Proper label -->
<label for="email">Email Address</label>
<input type="email" id="email" name="email" required>

Error Handling:

<!-- GOOD: Clear error messaging -->
<label for="password">Password (minimum 8 characters)</label>
<input type="password" id="password" aria-describedby="password-error" aria-invalid="true">
<span id="password-error" role="alert">
  Password must be at least 8 characters long
</span>

Real-World Example: An insurance company's claim form used red asterisks to indicate required fields without any text explanation. Color-blind users and screen reader users couldn't identify which fields were mandatory, leading to repeated form submission failures. After adding "required" to labels and using aria-required="true", form completion rates improved by 35%.

Advanced Accessibility Testing Techniques

Automated Testing Tools

While automated testing can only catch about 30-40% of accessibility issues, it's an essential first line of defense.

Popular Tools:

1. axe DevTools (Browser Extension)

  • Identifies WCAG violations automatically
  • Provides specific remediation guidance
  • Can be integrated into CI/CD pipelines

2. Lighthouse (Built into Chrome DevTools)

  • Comprehensive accessibility audit
  • Scores pages from 0-100
  • Identifies specific issues with solutions

3. WAVE (Web Accessibility Evaluation Tool)

  • Visual feedback about accessibility
  • Shows structure and order of content
  • Highlights contrast errors

4. Pa11y (Command-line tool)

  • Automated testing for CI/CD
  • Can test multiple pages
  • Generates detailed reports

Automated Testing Example:

// Example: axe-core integration in Playwright
const { test, expect } = require('@playwright/test');
const AxeBuilder = require('@axe-core/playwright').default;

test('Homepage should not have accessibility violations', async ({ page }) => {
  await page.goto('https://example.com');
  
  const accessibilityScanResults = await new AxeBuilder({ page })
    .withTags(['wcag2a', 'wcag2aa'])
    .analyze();
  
  expect(accessibilityScanResults.violations).toEqual([]);
});

Manual Testing with Assistive Technologies

Automated tools can't catch everything. Manual testing is essential for understanding the actual user experience.

Comprehensive Manual Testing Checklist:

1. Zoom and Scaling Test

  • Zoom to 200% (WCAG requirement)
  • Verify no content loss or overlap
  • Test responsive behavior

2. Screen Reader Test

  • Navigate using headings
  • Fill out all forms
  • Verify image descriptions
  • Test dynamic content updates

3. Keyboard Navigation Test

  • Tab through all interactive elements
  • Verify focus indicators
  • Test keyboard shortcuts
  • Verify no keyboard traps

4. Voice Control Test (Advanced)

  • Test with Dragon NaturallySpeaking or Voice Control (macOS)
  • Verify all interactive elements have voice-accessible names
  • Test form completion via voice

Real-World Example: A government services website passed all automated tests but failed manual screen reader testing. The site used custom JavaScript to create a tabbed interface, but hadn't implemented proper ARIA roles and keyboard event handlers. Screen reader users couldn't access three of five tabs, hiding critical information about benefits eligibility.

Accessibility Testing in Agile Development

Integrating accessibility testing throughout the development lifecycle prevents expensive late-stage fixes.

Testing Strategy by Phase:

Design Phase:

  • Review designs for color contrast
  • Verify logical content flow
  • Check for color-only information conveyance
  • Ensure touch targets are adequately sized (minimum 44×44 pixels)

Development Phase:

  • Run automated tests on every commit
  • Conduct keyboard testing during feature development
  • Use semantic HTML from the start
  • Implement ARIA correctly

QA Phase:

  • Comprehensive manual testing with assistive technologies
  • Cross-browser accessibility testing
  • Mobile accessibility testing
  • User acceptance testing with people with disabilities

Real-World Example: A SaaS company integrated automated accessibility tests into their CI/CD pipeline, blocking deployments if critical violations were detected. Within six months, their WCAG compliance rate improved from 65% to 92%, and accessibility-related support tickets decreased by 70%.

Mobile Accessibility Testing

Mobile accessibility has unique considerations beyond web accessibility.

Key Mobile Testing Areas:

1. Touch Target Sizing

  • Minimum 44×44 CSS pixels (Apple) or 48×48 dp (Android)
  • Adequate spacing between targets

2. Screen Reader Testing

  • iOS VoiceOver gestures
  • Android TalkBack gestures
  • Custom element announcements

3. Orientation and Zoom

  • Support both portrait and landscape
  • Allow pinch-to-zoom
  • Maintain functionality when zoomed

4. Motion and Animation

  • Respect "Reduce Motion" settings
  • Provide alternatives to motion-based interactions

Real-World Example: A banking app's "shake to undo" feature was inaccessible to users with motor disabilities. After testing with users with tremors, they added a traditional undo button as an alternative, improving accessibility while maintaining the gesture for users who preferred it.

Creating an Accessibility Testing Strategy

Building Your Testing Framework

1. Establish Baseline Compliance

  • Audit your current state
  • Identify critical violations
  • Prioritize fixes based on impact

2. Define Testing Standards

  • Target WCAG level (typically AA)
  • Document testing procedures
  • Create accessibility guidelines for developers

3. Implement Continuous Testing

  • Automated tests in CI/CD
  • Regular manual audits
  • User testing with people with disabilities

4. Training and Awareness

  • Train developers on accessibility basics
  • Conduct regular accessibility workshops
  • Share success stories and learnings

Measuring Success

Key Metrics to Track:

  • WCAG compliance percentage
  • Number of critical/major/minor violations
  • Accessibility-related support tickets
  • Task completion rates for users with assistive technologies
  • Time to resolve accessibility issues

Real-World Example: After implementing a comprehensive accessibility testing strategy, a global e-commerce platform tracked a 25% increase in purchases from users with assistive technologies, generating an additional $2.3 million in annual revenue while simultaneously reducing legal risk.

Common Accessibility Testing Pitfalls

  1. Relying Only on Automated Testing
    • Automated tools catch only 30-40% of issues
    • Manual testing is essential
  2. Testing Too Late
    • Accessibility should be considered from design phase
    • Late fixes are expensive and time-consuming
  3. Ignoring Keyboard Navigation
    • One of the most common and impactful issues
    • Must be tested thoroughly
  4. Overlooking Dynamic Content
    • Single-page applications and AJAX updates often lack proper announcements
    • Screen readers may miss important changes
  5. Assuming Compliance Equals Usability
    • Meeting WCAG standards is necessary but not sufficient
    • Real user testing is invaluable

Conclusion

Accessibility testing is not a one-time checkbox but an ongoing commitment to inclusive design and development. By implementing the strategies and techniques outlined in this guide-from basic keyboard navigation testing to advanced automated testing in your CI/CD pipeline-you'll create digital experiences that serve all users effectively.

Remember that accessibility testing benefits everyone, not just users with disabilities. Clear navigation, good color contrast, and well-structured content improve usability for all users, in all situations. Whether someone is using your application in bright sunlight, on a small mobile screen, or with a temporary injury, accessible design principles create better experiences.

Start small if needed-run your first automated scan, conduct your first keyboard navigation test, or try navigating your site with a screen reader. Each step toward better accessibility is a step toward a more inclusive digital world.

The goal isn't perfection; it's continuous improvement and a genuine commitment to ensuring your digital products can be used by everyone, regardless of their abilities.


References

Legal Cases and Compliance

  1. Robles v. Domino's Pizza LLC, 913 F.3d 898 (9th Cir. 2019). Supreme Court denied certiorari, establishing precedent for website accessibility under the Americans with Disabilities Act.
  2. National Federation of the Blind v. Target Corp., Case No. CV-06-1802 (N.D. Cal. 2008). Settlement requiring accessibility improvements and $6 million payment.
  3. U.S. Department of Justice (2023). "Guidance on Web Accessibility and the ADA." Available at: https://www.ada.gov/resources/web-guidance/

Standards and Guidelines

  1. World Wide Web Consortium (W3C) (2023). "Web Content Accessibility Guidelines (WCAG) 2.2." W3C Recommendation. Available at: https://www.w3.org/TR/WCAG22/
  2. World Wide Web Consortium (W3C) (2023). "Accessible Rich Internet Applications (WAI-ARIA) 1.2." W3C Recommendation. Available at: https://www.w3.org/TR/wai-aria-1.2/
  3. World Health Organization (2023). "Disability and Health Fact Sheet." Available at: https://www.who.int/news-room/fact-sheets/detail/disability-and-health
  4. Section 508 Standards (2018). "Revised 508 Standards." U.S. Access Board. Available at: https://www.section508.gov/

Research and Statistics

  1. WebAIM (2024). "The WebAIM Million - An annual accessibility analysis of the top 1,000,000 home pages." Available at: https://webaim.org/projects/million/
  2. Deque Systems (2023). "Automated Accessibility Testing: Accuracy and Completeness Study." Available at: https://www.deque.com/research/
  3. Pew Research Center (2021). "Disabled Americans are less likely to use technology." Available at: https://www.pewresearch.org/internet/
  4. Return on Disability Group (2020). "The Global Economics of Disability: Annual Report." Available at: https://www.rod-group.com/

Tools and Testing Resources

  1. Deque Systems (2024). "axe DevTools Documentation." Available at: https://www.deque.com/axe/devtools/
  2. Google Developers (2024). "Lighthouse Accessibility Scoring." Available at: https://developer.chrome.com/docs/lighthouse/accessibility/scoring
  3. WebAIM (2024). "WAVE Web Accessibility Evaluation Tool." Available at: https://wave.webaim.org/
  4. Pa11y (2024). "Pa11y: Your Automated Accessibility Testing Pal." Available at: https://pa11y.org/
  5. NVDA (NonVisual Desktop Access) (2024). "NVDA Screen Reader." NV Access. Available at: https://www.nvaccess.org/
  6. Freedom Scientific (2024). "JAWS Screen Reader." Available at: https://www.freedomscientific.com/products/software/jaws/

Technical Documentation

  1. Mozilla Developer Network (MDN) (2024). "ARIA: Accessible Rich Internet Applications." Available at: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA
  2. Apple Inc. (2024). "Accessibility for Developers." Apple Developer Documentation. Available at: https://developer.apple.com/accessibility/
  3. Google (2024). "Android Accessibility Help." Available at: https://support.google.com/accessibility/android/
  4. Microsoft (2024). "Inclusive Design Principles." Microsoft Design. Available at: https://www.microsoft.com/design/inclusive/

Academic and Professional Publications

  1. Henry, S. L., Abou-Zahra, S., & Brewer, J. (2014). "The Role of Accessibility in a Universal Web." Proceedings of the 11th Web for All Conference. ACM.
  2. Lazar, J., Dudley-Sponaugle, A., & Greenidge, K. D. (2004). "Improving web accessibility: A study of webmaster perceptions." Computers in Human Behavior, 20(2), 269-288.
  3. Power, C., Freire, A., Petrie, H., & Swallow, D. (2012). "Guidelines are only half of the story: Accessibility problems encountered by blind users on the web." Proceedings of the SIGCHI Conference on Human Factors in Computing Systems, 433-442.

Best Practice Guides

  1. WebAIM (2024). "Keyboard Accessibility." Available at: https://webaim.org/articles/keyboard/
  2. WebAIM (2024). "Contrast and Color Accessibility." Available at: https://webaim.org/articles/contrast/
  3. A11Y Project (2024). "Checklist." Available at: https://www.a11yproject.com/checklist/
  4. Deque University (2024). "Web Accessibility Curriculum." Available at: https://dequeuniversity.com/
  5. Nielsen Norman Group (2023). "Usability for People with Disabilities." Available at: https://www.nngroup.com/topic/accessibility/
  6. UK Government Digital Service (2024). "Dos and don'ts on designing for accessibility." Available at: https://accessibility.blog.gov.uk/

Color Blindness and Visual Impairment

  1. National Eye Institute (2023). "Color Blindness." Available at: https://www.nei.nih.gov/learn-about-eye-health/eye-conditions-and-diseases/color-blindness
  2. Colour Blind Awareness (2024). "Types of Colour Blindness." Available at: https://www.colourblindawareness.org/

Assistive Technology Research

  1. WebAIM (2023). "Screen Reader User Survey #10." Available at: https://webaim.org/projects/screenreadersurvey10/
  2. Burgstahler, S. (2021). "Universal Design in Higher Education: From Principles to Practice." Harvard Education Press.

Industry Reports

  1. Forrester Research (2022). "The Business Case for Digital Accessibility." Available at: https://www.forrester.com/
  2. Gartner (2023). "Innovation Insight for Digital Accessibility Tools." Available at: https://www.gartner.com/

Additional Resources

  1. W3C Web Accessibility Initiative (WAI) (2024). "Introduction to Web Accessibility." Available at: https://www.w3.org/WAI/fundamentals/accessibility-intro/
  2. Inclusive Design Research Centre (2024). "Inclusive Learning Design Handbook." Available at: https://handbook.floeproject.org/
  3. The Paciello Group (2024). "Accessibility Resources and Blog." Available at: https://www.tpgi.com/
  4. Smashing Magazine (2024). "Accessibility Category Archives." Available at: https://www.smashingmagazine.com/category/accessibility/
Note: All web resources were verified as accessible as of the article's publication date. URLs and standards may be updated over time. For the most current information, please visit the official W3C WAI website and relevant standards bodies.

Tags:

Accessibility Testing WCAG A11y Screen Readers Inclusive Design Web Accessibility Quality Assurance

Share this article:

Kumudu Gunarathne

Writer's Insight

Kumudu Gunarathne is a Senior QA Professional and founder of Quality Pulse Academy, with 11+ years of experience in test automation and quality leadership. He also writes on politics, history, and social studies, connecting past lessons to today's world.