Skip to content

Fix/a11y wcag audit - #113

Closed
0dillon wants to merge 3 commits into
wraith-protocol:developfrom
0dillon:fix/a11y-wcag-audit
Closed

Fix/a11y wcag audit#113
0dillon wants to merge 3 commits into
wraith-protocol:developfrom
0dillon:fix/a11y-wcag-audit

Conversation

@0dillon

@0dillon 0dillon commented Jul 28, 2026

Copy link
Copy Markdown

Closes #87

Summary

WCAG 2.1 AA accessibility audit for the Wraith Protocol landing page. Adds comprehensive a11y test coverage for all pages, a Playwright-based a11y gate, and CI enforcement.

What Changed

  • Extended src/__tests__/a11y.test.tsx from 2 → 14 vitest-axe tests covering all 9 routes (homepage, FAQ, roadmap, privacy, use-cases, Stellar, case-studies list, case study detail, 404).
  • Added keyboard navigation tests for homepage hamburger menu, FAQ accordion, and use-cases links.
  • Added tests/a11y/a11y.spec.ts with Playwright + @axe-core/playwright for all 9 routes, keyboard nav, skip-link verification, and reduced-motion (prefers-reduced-motion: reduce) compliance.
  • Added playwright.config.ts with Chromium project and preview server config.
  • Added playwright-a11y job to .github/workflows/ci.yml (needs build, installs Playwright browsers, runs axe gate).
  • Added test:a11y:playwright script to package.json.

Acceptance Criteria Checklist

  • Zero critical/serious axe violations per page (14 vitest-axe + 9 Playwright-axe tests).
  • Keyboard-only navigation works (hamburger menu Escape, FAQ accordion, use-cases links).
  • Reduced-motion respected (Playwright emulates prefers-reduced-motion: reduce, verifies [data-reveal] elements immediately visible).
  • Gate in CI (playwright-a11y job blocks PRs on failures).

Test Output

All 14 vitest-axe tests pass, TypeScript compiles clean, Prettier passes. 1 pre-existing PrivacyComparison test failure unrelated to this change.

@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

@0dillon is attempting to deploy a commit to the truthixify's projects Team on Vercel.

A member of the Team first needs to authorize it.

@0dillon 0dillon closed this Jul 28, 2026
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.

Accessibility audit (WCAG 2.1 AA)

1 participant