feat(cli): stackwright test:a11y — portable WCAG 2.1 AA accessibility audit (#270)#456
Merged
Conversation
added 5 commits
May 20, 2026 12:52
Contributor
❌ Visual Regression Test ResultsStatus: ❌ Visual regression tests failed Visual differences were detected! Please review:
📸 Baseline screenshots are committed to the repo for reproducible testing. |
Contributor
♿ Accessibility Test ResultsOverall Status: ✅ 0/0 tests passed 🦮 WCAG 2.1 AA ComplianceNo WCAG test results available ⌨️ Keyboard NavigationNo keyboard navigation test results available 📊 Detailed ReportDownload the full HTML accessibility report from the workflow artifacts for:
🔍 Testing ChecklistOur accessibility tests verify:
Powered by @axe-core/playwright and Playwright |
Contributor
✅ Visual Regression Test ResultsStatus: ✅ All visual tests passed! All screenshots match the baseline. No visual regressions detected! 🎉 |
Contributor
⚡ Performance Benchmark Results✅ Build Time Benchmarks: PASSED✅ Bundle Size Benchmarks: PASSED❌ Runtime Vitals Benchmarks: FAILED📝 Note: Detailed results are available in the job logs. 🎯 Performance Budgets:
Updated: 2026-05-20T18:09:20.620Z |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #270 / stackwright-a45.
Implements the
stackwright test:a11yCLI command in 5 phases as specified in the issue:Phase 1 — Page Discovery Utility
packages/cli/src/utils/a11y-page-discovery.ts—discoverPageSlugs()wraps existinglistPages(); zero duplicationPhase 2 — Portable Axe Runner
packages/cli/src/utils/a11y-runner.ts— axe-core + Playwright, cookie-based dark-mode switching,failOnthreshold, graceful optional-peer-dep errors@axe-core/playwrightadded as optional peer dependency to@stackwright/cliPhase 3 — CLI Command
packages/cli/src/commands/a11y.ts—stackwright test:a11y [slug]with--pages,--no-dark-mode,--tags,--fail-on,--json,--base-urlcli.tsand exported fromindex.tsPhase 4 — launch-stackwright Integration
packages/launch-stackwright/README.mdupdated with new CLI section andtest:a11yentryPhase 5 — MCP/Otter Integration
packages/mcp/src/tools/a11y.ts—stackwright_test_a11ytool with structured violation output and actionable error messagespackages/mcp/src/server.tsTesting
a11y-runner.test.tsanda11y.test.tspreview.tspattern for optional Playwright peer deppackages/e2e/tests/a11y/wcag-compliance.spec.tsUsage
Requirements
playwright(optional peer dep, already listed)@axe-core/playwright(new optional peer dep added)http://localhost:3000(or--base-url)