Repository navigation
test: establish automated WCAG and multi-engine release gates - #102
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR strengthens coven-landing’s automated quality gates by adding explicit WCAG-focused Playwright contracts, a curated multi-engine “release” browser matrix, and fail-closed drift checks/docs to keep those gates from silently degrading over time.
Changes:
- Add Playwright accessibility contract tests (reduced motion, forced colors, skip link focus, target sizing, focus visibility, 200% text overflow).
- Add a curated five-project Playwright release config + GitHub Actions workflow to run the smoke suite across Chromium/Firefox/WebKit and mobile emulations with retained diagnostics.
- Add drift verification (
scripts/verify-release-gates.mjs), wire newpnpm check:*scripts, and document the automated vs. empirical evidence boundary.
Reviewed changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/release/smoke.spec.ts | Curated cross-engine smoke suite for routes, canonical/metadata, theme persistence, navigation, reduced motion, and no-JS usability. |
| tests/accessibility-contracts.spec.ts | Automated WCAG-oriented interaction and rendering contracts (skip link, targets, forced colors, reduced motion, 200% text overflow). |
| src/styles/accessibility.css | Shared reduced-motion and forced-colors styling layer intended to keep system rendering/focus visible. |
| src/layouts/SiteLayout.astro | Imports the new accessibility stylesheet into the canonical vNext layout. |
| scripts/verify-release-gates.mjs | Fail-closed drift checks ensuring configs/workflows/tests/docs retain required gates and artifacts. |
| playwright.release.config.ts | Dedicated Playwright config for the five-project release matrix with retained-on-failure artifacts. |
| package.json | Adds check:accessibility + check:release and includes the new drift verifier in pnpm check. |
| docs/release/release-gate-matrix.md | Documents the three-layer evidence model (fast gate, release gate, empirical matrix) and local commands. |
| docs/release/accessibility-evidence-template.md | Explicitly unverified manual evidence template that blocks “paper” sign-off without receipts. |
| .gitignore | Ignores the dedicated release HTML report folder. |
| .github/workflows/release-gates.yml | New workflow running the release matrix with per-project artifacts uploaded via if: always(). |
| .github/workflows/ci.yml | Uploads Playwright diagnostics (playwright-report/, test-results/) when the fast gate’s browser step fails. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| if (!fastConfig.includes("name: 'chromium'")) { | ||
| throw new Error('The fast Playwright config must retain its Chromium project'); | ||
| } | ||
| for (const forbidden of ['release-firefox', 'release-webkit', 'release-mobile-webkit']) { |
This branch was successfully deployed
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.
Objective
Advance the automatable portions of #81 and #82 without misrepresenting browser emulation as screen-reader, physical-device, comprehension, or production sign-off.
Automated accessibility contracts
main;Release browser matrix
The existing Desktop Chromium suite remains the fast PR gate. A separate curated config and workflow add:
release-chromium— Desktop Chrome;release-firefox— Desktop Firefox;release-webkit— Desktop Safari/WebKit;release-mobile-chromium— Pixel 5 profile;release-mobile-webkit— iPhone 13 profile.The release suite covers all nine canonical routes, metadata, runtime/console health, document overflow, theme persistence, desktop/mobile navigation, reduced motion, and JavaScript-disabled content without multiplying every detailed Chromium test across five projects.
Each matrix job installs only its required engine and uploads HTML, JUnit, trace, screenshot, and retained-on-failure video evidence with
if: always().Fast-gate diagnostics
The existing CI workflow now uploads
playwright-report/andtest-results/whenever the Chromium browser step fails, closing the previous evidence gap where a red check could have no downloadable artifact.Fail-closed drift checks
scripts/verify-release-gates.mjsenforces:Empirical evidence boundary
docs/release/accessibility-evidence-template.mdrequires named receipts for:It defaults to unverified — not approved for release. Automated WebKit is not presented as physical Safari, forced-colors emulation is not Windows High Contrast sign-off, and Axe is not screen-reader sign-off.
Commands
Issue state
This PR materially advances #81 and #82 but must not close them. Remaining gates include empirical assistive-technology/device receipts, approved visual baselines, preview smoke, download/platform validation, and staged release evidence.
Refs #81, #82, #83, and #85.