IHOR.DEVKNOWLEDGE_BASE
MENU

~/blog / Web Quality / how-to-run-an-accessibility-audit.md

// guide · 4 min read

How to Run an Accessibility Audit

Audit representative user journeys with keyboard, screen-reader, zoom, and automated checks, then report reproducible barriers and retest complete tasks.

Quick answer

An accessibility audit combines automated detection with manual evaluation of real tasks. Select representative routes and states, check keyboard operation, accessible names, reading order, zoom and reflow, contrast, forms, and dynamic updates. A tool score or a short preliminary review cannot establish complete conformance. Report the scope, environment, and remaining limits alongside findings.

Prioritize barriers by task impact: a user unable to submit a form or leave a dialog faces a different problem from an unclear decorative label. Keep each finding reproducible and connect it to a repair and retest. This guide describes an audit method, not a claim that any linked product has passed a full accessibility evaluation.

Practical implementation steps

Sample journeys and states

Include a landing page, navigation, a detail view, the primary form, a modal, and error or empty states where relevant. Add narrow layouts and supported languages. Record browser, operating system, assistive technology, and viewport. A page-only sample misses failures that arise only after submitting invalid data or opening an overlay.

Check operation without a pointer

Move through the task with Tab, Shift+Tab, Enter, Space, and widget-specific keys. Check visible focus, logical order, reachable controls, dismissal, and focus restoration. Do not stop when every element can technically receive focus: verify the user can complete the task and understand the current state.

Inspect semantics and presentation

Use the accessibility tree and a screen reader to assess landmarks, headings, names, roles, and announcements. Test zoom and content reflow rather than only scaling a screenshot. Check text and control contrast against their actual backgrounds. Native Color Picker's repository description explicitly limits its contrast checker to two selected colors; it does not assess the page's fonts, backgrounds, or full accessibility requirements.

Turn findings into testable repairs

Record steps, expected behavior, actual barrier, affected task, and evidence. Link the relevant criterion only when the observation supports it. Fix shared components first where a repeated defect has one cause. Retest the full journey after repair and keep automated regressions for deterministic failures without replacing human evaluation.

Implementation example

An accessibility-tree assertion can protect meaningful structure in a representative test. This Playwright illustration expects a labelled form and submit button. It is a narrow check; it does not prove keyboard, contrast, or screen-reader usability.

import { test, expect } from "@playwright/test";

test("contact form exposes its main controls", async ({ page }) => {
  await page.goto("/contact");
  await expect(page.getByRole("form", { name: "Contact" })).toMatchAriaSnapshot(`
    - form "Contact":
      - textbox "Email"
      - textbox "Message"
      - button "Send message"
  `);
});

Adapt the snapshot to the actual public contract rather than recording every incidental wrapper. Add behavior tests for submission and error recovery, and manually evaluate announcements and focus. Keep supported tool versions aligned with the installed test environment.

Tradeoffs and alternatives

Automated tools cover some rules quickly and repeatedly; manual journeys reveal interaction and meaning barriers. A full conformance evaluation needs a defined standard and methodology beyond a quick review. Use preliminary checks to find work, not as a certificate. Involve people with disabilities where possible to evaluate important product journeys.

Common mistakes

  • Calling an automated score a complete audit.
  • Checking only the initial page state.
  • Equating focusability with task completion.
  • Testing contrast from guessed rather than actual backgrounds.
  • Closing findings without retesting the affected journey.

Production checklist

  • Scope and environments are documented.
  • Core journeys include error and dynamic states.
  • Keyboard, semantics, zoom, and contrast are reviewed.
  • Findings contain reproducible steps and task impact.
  • Shared fixes are verified across representative routes.
  • Reported claims stay within the evaluation scope.

FAQ

Can an accessibility tree replace a screen reader?

No. It exposes useful structure, but interaction timing, announcements, and assistive-technology behavior need actual evaluation.

Should every defect block a release?

Use severity and the product's requirements, but do not hide task-blocking barriers behind a score average. Record unresolved limitations honestly and prioritize complete access to essential tasks.

Conclusion

Audit complete tasks, document reproducible barriers, and retest the repair in its real context. Keep automated evidence and manual findings together while stating exactly what the evaluation establishes.

Primary sources

Ihor Kharchyshyn

Independent full-stack product engineer writing source-backed implementation guides for browser extensions and modern web products.

Need this implemented in a real product?

One connected implementation across the interface, application logic, APIs, and data layer.