-
Notifications
You must be signed in to change notification settings - Fork 25
Playwright Verifier
Type: Hidden helper sub-agent (not user-invokable)
Platforms: Copilot (.github/agents/playwright-verifier.agent.md), Claude Code (.claude/agents/playwright-verifier.md)
Invoked by: web-issue-fixer after applying each fix
Closed-loop fix verification using Playwright. After a fix is applied, navigates to the fixed element, runs a targeted axe-core assertion or behavioral check, and reports PASS/FAIL/REGRESSION. Replaces screenshot-based verification with deterministic, assertable browser tests.
- Receive fix context: rule ID, CSS selector, dev server URL, fix type
- Run the appropriate verification tool based on fix type
- Compare pre-fix and post-fix state
- Return verdict: PASS, FAIL, or REGRESSION
| Fix Type | Tool Used | What Is Checked |
|---|---|---|
contrast |
run_playwright_contrast_scan |
Computed colors, contrast ratio meets threshold |
keyboard |
run_playwright_keyboard_scan |
Element in tab order, no traps introduced |
aria |
run_playwright_a11y_tree |
Role, name, state in accessibility tree |
structure |
run_playwright_a11y_tree |
Heading hierarchy, landmark structure |
state |
run_playwright_state_scan |
Dynamic content accessible after interaction |
viewport |
run_playwright_viewport_scan |
Reflow and touch targets at all widths |
After a verified PASS, generates a Playwright test file that encodes the assertion for regression prevention. Test files are saved to tests/a11y/ for inclusion in the project's test suite.
Same as playwright-scanner — requires playwright, optionally enhanced by @axe-core/playwright.
-
web-issue-fixer— Orchestrator that dispatches this agent -
playwright-scanner— Scanning counterpart
- Accessibility Lead
- Web Accessibility Wizard
- Document Accessibility Wizard
- Alt Text and Headings
- ARIA Specialist
- Contrast Master
- Forms Specialist
- Keyboard Navigator
- Link Checker
- Live Region Controller
- Modal Specialist
- Tables Data Specialist
- Word Accessibility
- Excel Accessibility
- PowerPoint Accessibility
- PDF Accessibility
- Office Scan Config
- PDF Scan Config
- Testing Coach
- WCAG Guide