Skip to content

feat(ci): add automated accessibility checks - #787

Open
Ugooweb wants to merge 1 commit into
Pulsefy:mainfrom
Ugooweb:fix-a11y-ci
Open

feat(ci): add automated accessibility checks#787
Ugooweb wants to merge 1 commit into
Pulsefy:mainfrom
Ugooweb:fix-a11y-ci

Conversation

@Ugooweb

@Ugooweb Ugooweb commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Closes #766

This PR introduces automated accessibility testing and linting to the frontend. Previously, there were no automated axe or pa11y tests, which increased the risk of shipping inaccessible UX—especially within critical flows like QR code generation and payments.

This PR establishes the foundation for a11y testing by adding the necessary tooling, writing our first automated audit, and updating contributor guidelines to prevent future accessibility regressions.

Key Changes
ESLint Configuration: Added and configured eslint-plugin-jsx-a11y to catch missing ARIA attributes, improper roles, and other accessibility violations during the linting phase (npm run lint).
Axe-Core Integration: Integrated axe-core and vitest-axe into the testing suite to run DOM accessibility audits on React components.
Initial Component Audit: Created an initial axe-core test for the QRPreview component (QRPreview.a11y.test.tsx) to ensure critical QR flows remain accessible.

Test Infrastructure Setup:
Added vitest.setup.ts to extend the test environment with toHaveNoViolations matchers.
Updated package.json to properly execute the test suite using vitest run during CI checks.
Documentation: Added an Accessibility Guidelines section to CONTRIBUTING.md to establish expectations for contributors regarding ARIA attributes, color contrast, and local a11y testing.

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@Ugooweb Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Cedarich

Copy link
Copy Markdown
Contributor

@Ugooweb

Kindly fix failed CI

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.

Frontend: add automated accessibility (a11y) checks to CI

2 participants