Skip to content

test: establish automated WCAG and multi-engine release gates - #102

Merged
BunsDev merged 15 commits into
mainfrom
test/accessibility-and-release-gates
Aug 31, 2026
Merged

BunsDev merged 15 commits into
mainfrom
test/accessibility-and-release-gates

Conversation

@BunsDev

@BunsDev BunsDev commented Aug 31, 2026

Copy link
Copy Markdown
Member

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

  • adds a shared accessibility layer for complete reduced-motion behavior and Windows forced-colors/system-color rendering;
  • verifies the skip link is first in keyboard order and transfers focus to main;
  • checks visible controls at mobile width for the 24px WCAG 2.2 minimum and 44px preferred primary-control target;
  • verifies mobile-menu focus remains visible and Escape restores the trigger;
  • emulates forced colors and confirms visible focus plus non-suppressed system rendering;
  • verifies reduced-motion preference eliminates sustained transitions/animation while keeping complete content;
  • applies 200% text scaling on every public route and rejects document-level horizontal overflow;
  • retains existing Axe, no-JavaScript, 320px reflow, semantic, clipboard-fallback, and route-state coverage.

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/ and test-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.mjs enforces:

  • the fast suite remains Chromium-only;
  • all five release projects and three engines remain present;
  • both workflows retain diagnostic artifacts;
  • forced-colors and reduced-motion CSS remains active;
  • target-size, focus, motion, forced-colors, 200%-text, theme, route, and no-JS contracts remain represented;
  • the manual evidence template remains explicitly unverified.

Empirical evidence boundary

docs/release/accessibility-evidence-template.md requires named receipts for:

  • VoiceOver + Safari on macOS;
  • NVDA + Firefox or Chrome on Windows;
  • VoiceOver + Safari on iPhone;
  • TalkBack + Chrome on Android;
  • real Windows High Contrast;
  • keyboard-only, text enlargement, and reflow;
  • product, download, and guided-proof tasks.

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

CI=true pnpm build
pnpm check
pnpm check:browser
pnpm check:accessibility
pnpm check:release

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.

Copilot AI lite review requested due to automatic review settings August 31, 2026 04:43
@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
coven Ready Ready Preview Aug 31, 2026 4:43am
coven-landing Ready Ready Preview Aug 31, 2026 4:43am

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 new pnpm 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']) {
@BunsDev
BunsDev merged commit 0fe6751 into main Aug 31, 2026
10 checks passed

This branch was successfully deployed

2 active deployments
Preview – coven — f622fbb2 Deployed Aug 31, 2026 by vercel[bot]
Preview – coven-landing — f622fbb2 Deployed Aug 31, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants