Skip to content

Gate accessibility, keyboard and performance budgets in CI - #11

Merged
anishshobithps merged 3 commits into
mainfrom
ci/e2e-gates
Nov 10, 2026
Merged

anishshobithps merged 3 commits into
mainfrom
ci/e2e-gates

Conversation

@anishshobithps

Copy link
Copy Markdown
Contributor

Summary

  • Adds a @biga/e2e package: Playwright against the production build and the fixture server, run by a new e2e job in CI. Traces of failed tests are uploaded.
  • Accessibility: axe (WCAG 2 A and AA, 2.1 and 2.2 AA) on the live viewer with a file open, an expanded tree, the timeline, quick open, a deleted file and the not-found page, plus the live viewer, timeline and quick open in the dark theme. Monaco's own syntax token colours are left out of the contrast check, but the editor inputs are still checked for an accessible name.
  • Keyboard: a single tab stop in the tree, arrow keys to walk, expand and collapse, Home and End, Enter to open, level, set size and position on every row, and Mod+P for quick open.
  • Deep links: a file link, Back after opening a file from the tree, a checkpoint link and the not-found page.
  • Performance: on the 50,000-file session, the DOM node count (1,500), the longest long task (100 ms) and directory expand time (100 ms) stay within budget. The scripts loaded before the editor are capped at 600 KiB gzipped for now.

Real defects the gates found and this PR fixes

  • Small muted text in panel headers (a count) was faded to 3.7:1 contrast; it now uses the full muted colour.
  • The destructive text colour was 4.25:1 on the sidebar surface in the timeline; the light destructive token is slightly darker.
  • The tab close button was 20 px and the dialog close button 16 px; both are now 24 px. The dialog close button also uses end-3 instead of right-4.
  • The diff editor's two inputs had no accessible name; the editors now have labels.

Things worth knowing

  • An unknown session answers HTTP 200 with the not-found page and a noindex robots tag, not a real 404. The page streams after the frame, so the status is already sent. The test asserts what happens today. A true 404 would mean resolving the session before anything is sent.
  • The first-load script budget is far above the 170 KiB target (measured about 540 KiB). I opened an issue to bring it down; the gate is set just above today's number so it stops it getting worse.
  • Lighthouse CI is not included.
  • Long task and interaction budgets use the blueprint's numbers with headroom for CI machines (100 ms instead of 50 ms for long tasks).

Test plan

  • 16 end-to-end tests pass locally against a production build
  • turbo run lint check-types and the 249 unit tests
  • CI, including the new e2e job

@vercel

vercel Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
website-vw4l Ready Ready Preview Nov 10, 2026 4:14pm UTC

@anishshobithps
anishshobithps merged commit f399943 into main Nov 10, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
Preview – website-vw4l — a5173075 Deployed Nov 10, 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.

1 participant