Skip to content

test(e2e): add Playwright Vite compatibility matrix - #80

Merged
cmseguin merged 2 commits into
mainfrom
test/e2e-vite-matrix
Oct 25, 2026
Merged

cmseguin merged 2 commits into
mainfrom
test/e2e-vite-matrix

Conversation

@cmseguin

Copy link
Copy Markdown
Owner

Summary

Recovers the e2e harness from #77, which was merged into chore/update-dependencies instead of main and therefore never reached main.

  • e2e/run.mjs packs the plugin, installs it into an isolated project per Vite major (5–8), and drives Chromium via Playwright in both dev-server and production-build modes.
  • e2e/assertions.mjs validates scoped/global styles, hash consistency, emitted JS/CSS, sourcemaps, and runtime diagnostics.
  • Moves examples/simple-vite-5 to e2e/fixture and reshapes it for deterministic assertions.
  • Adds test:e2e and test:e2e:install scripts.
  • Excludes e2e/ from npm publication, tsc, and lint.

Verification

  • npm test: 51/51 passing
  • npm run build and npm run lint: clean
  • node e2e/run.mjs: all 8 combinations pass (Vite 5/6/7/8 × dev/build)

Release impact

test(e2e): is not a release type for semantic-release, so merging will not bump the version or publish.

🤖 Generated with Claude Code

cmseguin and others added 2 commits October 25, 2026 11:24
Add a browser-level e2e harness that validates the plugin against Vite 5, 6,
7, and 8 in both dev-server and production build modes.

- e2e/run.mjs packs the plugin, installs it into an isolated project per Vite
  major, and drives Chromium via Playwright
- e2e/assertions.mjs checks scoped/global styles, hash consistency, emitted
  JS/CSS, sourcemaps, and runtime errors
- move examples/simple-vite-5 to e2e/fixture and reshape it for deterministic
  assertions (component isolation, global-only styles)
- add test:e2e and test:e2e:install scripts and document the harness
- exclude e2e/ from npm publication, tsc, and lint

Co-Authored-By: Claude <noreply@anthropic.com>
Add a separate e2e job that installs Playwright Chromium and runs
the Vite 5-8 dev/build matrix via `npm run test:e2e`.

Co-Authored-By: Claude <noreply@anthropic.com>
@cmseguin
cmseguin merged commit 15aabd4 into main Oct 25, 2026
2 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.2.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant