Skip to content

What is accessibility testing?

Sergey Almyashev

Definition

Accessibility testing checks that people with disabilities can use a website or app, including with screen readers, keyboards and zoom. It combines automated rule checks against WCAG, which catch many code-level failures, with manual review and assistive-technology testing for what tools cannot judge.

What does automated accessibility testing find?

Automated tools run rules against the page code. They are fast, repeatable and fit in CI. The 2026 WebAIM Million scan of one million home pages (February 2026) shows what they detect most often: low contrast text on 83.9% of pages, missing image alternative text on 53.1%, missing form labels on 51%, empty links on 46.3% and empty buttons on 30.6%. In total, 95.9% of pages had detected WCAG 2 failures (WebAIM, updated 2026-03-30).

The same report states the limit: "not all conformance failures can be automatically detected." A page with zero detected errors is not proven accessible.

What needs a person?

CheckAutomatedManual or assistive technology
Missing alt attributeYes
Is the alt text meaningful?Yes
Contrast of text on plain backgroundsYes
Keyboard order makes sense, focus never gets trappedPartlyYes
Form errors are announced by a screen readerYes
Captions match the audioYes
Content is usable at 400% zoomPartlyYes

We list the rows as our experience of the split, not as a measured share. We found no 2026 primary source for "what percent automated tools catch", so we do not quote one. Pair tools with the exploratory work in manual and exploratory testing.

Which standard do you test against?

The W3C encourages use of the latest version, WCAG 2.2, and notes that it "does not deprecate or supersede WCAG 2.1." It has three conformance levels (A, AA, AAA) and organizes its guidelines under four principles, starting with perceivable, operable and understandable (W3C WCAG overview, updated 2026-09-17). WCAG 3.0 is an early draft, so it is not yet a target.

Law often names an older version. The US Department of Justice rule for state and local government web content requires WCAG 2.1 Level AA. An interim final rule published in the Federal Register on 20 April 2026 moved the compliance dates to 26 April 2027 for entities of 50,000 people or more and 26 April 2028 for smaller ones and special district governments (Federal Register).

In the EU, the Commission's page on the European Accessibility Act lists covered products and services, including e-commerce, banking services and e-books (European Commission). Whether your product is in scope is a question for counsel, not a test suite.

How do you run an automated check with Playwright and axe?

We ran the Deque axe-core engine through @axe-core/playwright against the W3C's "Before and After Demonstration", a pair of pages built to show accessibility barriers and their fixes. Setup: npm i playwright @axe-core/playwright, with Playwright 1.65.2, @axe-core/playwright 4.14.1, axe-core 4.14.1, Chrome 158 and Node.js 22.9.0, run on 2026-12-05.

import { chromium } from 'playwright';
import AxeBuilder from '@axe-core/playwright';

const urls = [
  'https://www.w3.org/WAI/demos/bad/before/home.html',
  'https://www.w3.org/WAI/demos/bad/after/home.html',
];
const browser = await chromium.launch({ channel: 'chrome' });
for (const url of urls) {
  const context = await browser.newContext(); // axe requires a context page
  const page = await context.newPage();
  await page.goto(url, { waitUntil: 'load' });
  const results = await new AxeBuilder({ page })
    .withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa', 'wcag22aa'])
    .analyze();
  console.log(`\n${url}`);
  console.log(`violations: ${results.violations.length}, passes: ${results.passes.length}, incomplete (needs manual review): ${results.incomplete.length}`);
  for (const v of results.violations) {
    console.log(`  ${v.impact.padEnd(8)} ${v.id} (${v.nodes.length} nodes)`);
  }
  await context.close();
}
await browser.close();

Output:

https://www.w3.org/WAI/demos/bad/before/home.html
violations: 6, passes: 14, incomplete (needs manual review): 1
  serious  color-contrast (2 nodes)
  serious  html-has-lang (1 nodes)
  critical image-alt (33 nodes)
  serious  link-name (7 nodes)
  critical select-name (1 nodes)
  serious  target-size (2 nodes)

https://www.w3.org/WAI/demos/bad/after/home.html
violations: 1, passes: 17, incomplete (needs manual review): 1
  serious  target-size (2 nodes)

Read it in three parts. The "before" page has six rule violations. The "after" page still has one: target size, which comes from a WCAG 2.2 rule that the demo pages predate. The incomplete count is the tool saying "a person must decide", which is the handoff to manual testing.

How does it fit in a delivery pipeline?

  1. Run axe on every key page or component in CI, and fail the build on new serious or critical violations.
  2. Keep known failures in a baseline so the gate flags only regressions, as in regression testing.
  3. Add the check inside your end-to-end tests, at the states where users act: open menus, dialogs and error messages. A scan of the empty page misses them.
  4. Before each release, a person walks the main flows with keyboard only and with a screen reader.
  5. Log findings with the WCAG criterion, so the fix has a clear target.

Our QA and test automation team builds the automated suites that run in CI, where checks like these belong.

Sources

  1. WCAG 2 Overview, W3C Web Accessibility Initiative, 2026-09-17
  2. The WebAIM Million 2026, WebAIM, Utah State University, 2026-03-30
  3. Extension of Compliance Dates for Nondiscrimination on the Basis of Disability; Accessibility of Web Information and Services of State and Local Government Entities (interim final rule, 91 FR 20902), U.S. Department of Justice, Federal Register, 2026-04-20
  4. European Accessibility Act, European Commission, 2026-07-02
  5. @axe-core/playwright 4.14.1, Deque Systems (npm), 2026-11-24

Frequently asked questions

Can automated tools check all of WCAG?

No. WebAIM states that not all conformance failures can be detected automatically, and that no detected errors does not mean a page is accessible. Plan manual checks for the rest.

Which WCAG version should you test against?

W3C encourages use of the latest version, WCAG 2.2, and says it does not supersede 2.1. Check the version your contract or law names: the US DOJ rule for state and local governments names 2.1 Level AA.

What is the best accessibility testing tool?

No single tool covers everything. Pair a rules engine such as axe-core in CI with a manual pass using a keyboard and a screen reader. Choose by where it fits your pipeline.

Does the European Accessibility Act affect software companies?

It covers products and services such as e-commerce, banking services and e-books, among others. Whether your product is in scope is a legal question: read the Act and ask counsel.

Sergey AlmyashevSergey AlmyashevChief Operating Officer14+ years in QA, automated, exploratory and performance testing, and continuous integration and delivery within Scrum, helping teams in product and outsourcing companies organize teams, processes and tools.LinkedIn

Building with AI agents? Talk to an engineer.