Skip to content

Add accessibility regression tests - #400

Merged
tsouth89 merged 16 commits into
mainfrom
fix/issue-222
Aug 23, 2026
Merged

Add accessibility regression tests#400
tsouth89 merged 16 commits into
mainfrom
fix/issue-222

Conversation

@tsouth89

@tsouth89 tsouth89 commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Fixes #222.

Adds vitest-axe, a shared assertion helper, and checks for quota cards, mini charts, and update banners in the existing Frontend test job. Color contrast is excluded because jsdom cannot measure rendered colors. Focused tests and the production frontend build pass.


Note

Low Risk
Test-only frontend change with a new devDependency; no production behavior or security-sensitive paths are modified.

Overview
Frontend CI now fails on axe accessibility regressions for quota cards, mini charts, and update banners.

Adds vitest-axe plus a shared expectNoAccessibilityViolations helper (color-contrast disabled because jsdom cannot measure it) and wires the matcher in the existing Vitest setup. Representative renders of PlanStatusCard, SimpleBarChart, and UpdateBanner call that helper.

Reviewed by Cursor Bugbot for commit 2c837b5. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Add axe-based accessibility regression tests for frontend components

  • Adds a shared expectNoAccessibilityViolations helper in accessibility.ts that runs axe and disables the color-contrast rule due to jsdom limitations
  • Registers axe matchers globally in the Vitest environment via setup.ts
  • Adds accessibility tests to the MiniBarChart, PlanStatusCard, and UpdateBanner test suites
  • Behavioral Change: The MiniBarChart, PlanStatusCard, and UpdateBanner test suites now fail when axe detects accessibility violations in their rendered output

Macroscope summarized 2c837b5.

@cursor

cursor Bot commented Aug 23, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_67369248-541b-4118-9bc6-f0fe329ae1b9)

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
ceiling 2c837b5 Commit Preview URL

Branch Preview URL
Aug 23 2026, 07:03 PM

@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@tsouth89, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 5 minutes

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

Wait for the limit to reset, then comment @coderabbitai review or push new commits to the PR.

An organization admin can change what happens after included review limits in Billing.

How do review limits work?

CodeRabbit enforces per-developer PR review limits within each organization.

For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 829a1f43-cb73-4671-86a2-502ec4c72289

📥 Commits

Reviewing files that changed from the base of the PR and between 747fcfa and 2c837b5.

⛔ Files ignored due to path filters (1)
  • apps/desktop-tauri/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (7)
  • CHANGELOG.md
  • apps/desktop-tauri/package.json
  • apps/desktop-tauri/src/components/MiniBarChart.test.tsx
  • apps/desktop-tauri/src/components/PlanStatusCard.test.tsx
  • apps/desktop-tauri/src/components/UpdateBanner.test.tsx
  • apps/desktop-tauri/src/test/accessibility.ts
  • apps/desktop-tauri/src/test/setup.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cursor

cursor Bot commented Aug 23, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_60facbc2-c74d-49ae-bcbd-ab1f07a45193)

@cursor

cursor Bot commented Aug 23, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_477f1f48-b5fd-49b9-9069-34122642555a)

@cursor

cursor Bot commented Aug 23, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_40d484b6-7705-4406-8819-7fae606ff9e2)

@cursor

cursor Bot commented Aug 23, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_8176776d-60c7-4fe1-b68a-4e9eab53c5df)

@tsouth89
tsouth89 merged commit 896e43a into main Aug 23, 2026
13 of 14 checks passed
@tsouth89
tsouth89 deleted the fix/issue-222 branch August 23, 2026 19:07
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.

No automated accessibility regression testing

1 participant