What does it mean?
Playwright can drive browser states and integrate accessibility rule scanners. The resulting checks cover selected rules and interactions, not every WCAG requirement or usability question.
Scan meaningful application states
A scan before opening a dialog misses the dialog. Drive the application into agreed states, then apply the selected rules. Keep fixtures and scope clear so findings can be reproduced and connected to the affected component.
Add keyboard and focus checks
Validate the interaction sequence, visible focus, expected dialog focus handling, and recovery from errors. These checks answer questions that a single structural scan cannot settle.
Maintain manual evaluation boundaries
Some criteria require contextual judgment or assistive-technology testing. Document which evaluation methods ran and which did not. Avoid labeling an automated pass as legal compliance or complete accessibility.
An account settings dialog
The page scan passes but focus escapes behind the open dialog.
- Open the dialog with keyboard navigation.
- Check initial focus and the expected tab sequence.
- Run the scoped automated scan in the open state.
- Close it and verify focus returns to the triggering control.
Illustrative scenario, not a customer result or a universal coverage promise.
Practical checklist
- Agree WCAG criteria and scanner rules.
- Include dynamic states.
- Validate keyboard recovery.
- Record manual review still needed.
Sources and further reading
Use the linked technical documentation for current framework details. Adapt these practices to your product requirements and approved environment scope.