Skip to content

ci: run a11y tests in their own CI job, separate from e2e - #197

Open
antfubot wants to merge 3 commits into
antfu:mainfrom
antfubot:ci/split-a11y-from-e2e
Open

ci: run a11y tests in their own CI job, separate from e2e#197
antfubot wants to merge 3 commits into
antfu:mainfrom
antfubot:ci/split-a11y-from-e2e

Conversation

@antfubot

Copy link
Copy Markdown
Contributor

pnpm test:e2e (and the e2e CI job) ran every Playwright project,
including the a11y project's axe-core color-contrast scans, bundled in
with the actual e2e specs (dev/build/webcontainer/instant/build-subbase).

  • test:e2e now targets just the five e2e projects explicitly.
  • New test:a11y script runs only the a11y project.
  • CI gets a new a11y job mirroring e2e's Playwright setup (own runner,
    own cache, own artifact upload), so a11y regressions surface as their own
    check and run in parallel with e2e instead of extending its runtime.

Also includes an unrelated one-line lint fix
(packages/node-modules-tools/src/registry/resolve.test.ts, inconsistent
object-key quoting introduced by #195) needed to get lint green on main
right now.


Created with the help of an agent.

`pnpm test:e2e` used to run every Playwright project, including the
axe-core color-contrast scans (`a11y` project) inside the single `e2e`
CI job. Split them:

- `test:e2e` now targets the five e2e-only projects explicitly (dev,
  build, webcontainer, instant, build-subbase).
- New `test:a11y` script runs just the `a11y` project.
- CI gets a new `a11y` job mirroring `e2e`'s Playwright setup, so a11y
  regressions surface as their own check and run in parallel with e2e
  instead of extending its runtime.

Created with the help of an agent.
…t.ts

Pre-existing lint failure from antfu#195 — some object-literal keys were
quoted (`'h3'`) while sibling keys of the same object weren't (`nuxt`),
which `style/quote-props` flags as inconsistent. Only surfaces once a
PR's branch is rebased/merged onto the current `main`, which is why CI
here needs it fixed too.

Created with the help of an agent.
@pkg-pr-new

pkg-pr-new Bot commented Aug 20, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/node-modules-inspector@197
npm i https://pkg.pr.new/node-modules-tools@197

commit: 0da1102

Both were already broken on `main` (predate this branch and antfu#195) and
would fail the new `e2e`/`a11y` jobs regardless of the split itself:

- `instant.spec.ts` expected a button named 'Instant' and a plain-text
  'npm registry' link role; the landing page's toggle has read 'Registry
  Query' since antfu#193 introduced the test, and the Overview panel's 'npm
  registry' was a plain `<span>`. Fixed the span to be a real link
  (matching its 'WebContainer' sibling) and updated the stale assertion.
- `badge-color-gray` (used by `NodeVersionRange` with `!bg-active`)
  only cleared a 4.13:1 dark-mode contrast ratio — bumped the dark text
  shade following the same pattern as the other hue overrides above it.

Created with the help of an agent.
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