Accessibility evaluation
What you need to know
Accessibility evaluation checks whether people can perceive, understand and operate an interface using different inputs and assistive technologies. Automated checks are valuable, but they are not a complete accessibility assessment.
By the end, you can: test names, keyboard and focus; distinguish automated from manual checks.
A keyboard interaction test
import {test,expect} from '@playwright/test';test('quantity works with keyboard',async({page})=>{ await page.goto('/catalog'); const add=page.getByRole('button',{name:'Add one'}); await add.focus();await expect(add).toBeFocused(); await page.keyboard.press('Enter'); await expect(page.getByRole('status')).toHaveText('2 selected');});Expected behavior: Expected keyboard activation and status update. Explicit focus here tests activation, not Tab order; a separate Tab sequence is needed.
How it works
Start with semantic HTML: one clear main landmark, descriptive headings, labeled form controls and native links/buttons. Check accessible names and keyboard reachability, activation, visible focus, logical order and recovery after errors. A status region can announce a changing quantity without moving focus; verify actual assistive technology behavior rather than claiming that a role guarantees an announcement. Use Playwright for real browser keyboard and viewport checks and optionally axe for supported automated rules. Automated tools detect only some issues; manual checks include screen-reader usability, understandable labels, contrast in all states, zoom/reflow and reduced-motion behavior. WCAG 2.2 AA is a target, not a certificate conferred by passing an automated scan. The English-only fixture uses lang=en and ltr; RTL is a planned later compatibility check, not a translation deliverable.
Automated and manual checks
Automated: role/name, selected axe rules, keyboard activationManual: sequential Tab order, visible focus, screen-reader status, 200% zoom and narrow reflow, reduced motionRecord environment, issue, reproduction and corrected resultExpected behavior: Passing the automated checks is not a WCAG conformance claim.
Common mistake
Do not replace native buttons with clickable divs just for styling. Do not use programmatic focus as the only evidence that a control can be reached with Tab.
Practice and verification
Check the staged layout at narrow and desktop widths; inspect link and button names, Tab sequence, focus visibility and live status using a real browser and assistive technology when approved.
Scope: Proposed Next.js 16.x / React 19, Cache Components disabled unless noted. Framework, browser and component examples are staged; local standalone tests are reported separately. Exact dependency patches and platform contracts pending.
Further reading: A11Y · Locators · Playwright · Wcag