Accessibility testing evaluates whether mobile and web apps are usable by people with disabilities. These can include visual, hearing, mobile, and cognitive impairments.
In the QA world, it's pretty common for testers to focus on the common accessibility issues like visual or hearing disabilities while overlooking a variety of other disabilities that also make using the web harder.
Some examples of overlooked disabilities include:
What accessibility testing looks for can be divided into several subcategories:
While this list isn't exhaustive, the specific tests you automate and run will depend on your accessibility goals. But, before getting into the accessibility standards to think through when running these tests, knowing why it's a requirement for businesses is key.
In 2024, 95.9% of home pages still failed the Web Content Accessibility Guidelines (WGAC). It becomes a missed opportunity to improve the customer experience, increase customer satisfaction and loyalty, boost their reputation, and improve their search engine rankings.
If guaranteeing equitable access to the web for everyone isn’t reason enough to build and run automated accessibility tests, there are others: Attracting and retaining a larger user base, improving SEO, and avoiding legal trouble.
On top of that, a few quick statistics highlight the upside for companies that prioritize accessibility testing:
The business benefits of accessibility testing are one thing. But businesses also need to consider the risk of not complying with accessibility legislation.
In the United States, Section 508 of the Rehabilitation Act requires web and mobile products to provide accessible interfaces to people with disabilities. The Americans with Disabilities Act (ADA), which prohibits discrimination against individuals with disabilities, has been interpreted by courts to apply to websites and digital content. It's led to a rise in lawsuits against businesses that don't have a fully accessible online presence.
Similar legislation exists in Canada, the European Union, the UK, Australia, and Brazil.
The Web Content Accessibility Guidelines (WCAG), which is a W3C standard, is considered the gold standard for accessibility guidelines. The WCAG success criteria are testable statements that confirm a given website content is accessible to a wide range of people with disabilities (PWD).
Many country’s regulatory bodies including the US, EU, UK, and Canada — use WCAG standards to measure compliance with the law.
WCAG is built on four fundamental principles known as POUR:
Each principle outlines individual success criteria. As of WCAG 2.1 there are 78 success criteria (WCAG 2.2 will have 86). WCAG conformance is scored on a rating scale with each rating requiring compliance with additional success criteria.
It’s important to note that conformance is not the same as certification. To be certified you must be audited by an accredited body.
Thankfully, you don’t have to pore over all the different legislation across constituencies to know if your website is compliant. WCAG provides a comprehensive framework for making web content more accessible to people with disabilities.
However, before you start to monitor your conformance with WCAG standards it’s helpful to define a general strategy.
Choosing a WCAG target doesn’t require an extraordinary amount of analysis into personas and user needs — in most cases, using WCAG as your standard will already encapsulate any testing you would discover on your own. The WCAG standard will also be fully auditable by a third-party should you decide to get certified.
Currently, a solely automated strategy will identify about 80% of the issues that would need WCAG certification. That's because determining how well content is presented and interacted with by people with different disabilities takes human judgment.
Popular accessibility testing tools, like Lighthouse and Axe, use WCAG standards to evaluate web accessibility. For example, Lighthouse, a part of Chrome’s DevTools, performs automated accessibility audits and provides actionable insights to improve web content. Axe is an open-source tool that integrates into development workflows for both automated and manual accessibility checks.
At QA Wolf we use the Deque Axe library to power our accessibility testing, and we think you should, too. Axe is compatible with a bunch of different frameworks and has bindings for many of the major programming languages. And it’s open-source.
You can run your accessibility checks as a static analyzer on the source code, or as end-to-end tests on a rendered page. We recommend the latter as it more accurately reflects how users with disabilities will perceive and interact with your product. Playwright has excellent documentation on implementing accessibility tests as part of your standard regression suite.
If you are running your accessibility tests as an E2E regression test, we recommend integrating them with the rest of your test suite in the CI/CD pipeline. This will give your developers instant feedback if new code causes an accessibility issue where there wasn’t one before.
At WCAG Level AAA, the highest level of WCAG conformance, are success criteria that require human judgment and can’t be automated. For those criteria you’ll need to perform occasional manual accessibility audits.
Our friends at Deque and AccessibilityWeb have manual auditing tools so you can find violations on your own without the need for third-party consultants. Even if your organization isn’t shooting for certification, manual audit tools can still be extremely valuable in identifying the last 20% of problems that automated tools can’t yet catch.
Accessibility testing helps you identify and resolve issues that keep people with disabilities from fully engaging with your website and applications. Adhering to accessibility standards, like WCAG, mitigates the legal risks of noncompliance and broadens your potential user base, opening up new avenues for market expansion and customer satisfaction.
You can read more about how we deliver WCAG compliance through automated regression testing, with results that are logged and fully auditable or schedule a demo to get a guided tour.