Skip to content

test(e2e): add a Playwright harness over a packed Vite host - #67

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-9126-react-ui-add-tiny-vite-host-harness-for-playwright-e2e
Sep 27, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-9126-react-ui-add-tiny-vite-host-harness-for-playwright-e2e

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • bun run test:e2e runs the existing exports check, then Playwright. e2e/helpers.ts packs the package, installs the tarball into a throwaway Vite host in a temp directory, typechecks e2e/fixtures.tsx against the packed types and serves one route per scenario. e2e/teardown.ts removes the host after the run. A smoke spec covers the harness.
  • playwright.config.ts sits at the root; the specs live in e2e/. bun test stays scoped to src/, and test:e2e runs only e2e/exports.test.ts under bun, so Playwright specs never run under bun.
  • CI installs Chromium before test:e2e.

Verification

bun run check, bun run build and bun run test:e2e pass (exports 2 pass, Playwright 1 pass).

Closes CL-9126

@TheGreatAxios
TheGreatAxios force-pushed the cl-9126-react-ui-add-tiny-vite-host-harness-for-playwright-e2e branch from dfbcb78 to afb654c Compare September 25, 2026 21:55
@TheGreatAxios
TheGreatAxios force-pushed the cl-9126-react-ui-add-tiny-vite-host-harness-for-playwright-e2e branch from afb654c to 3a0eada Compare September 26, 2026 01:32
@TheGreatAxios TheGreatAxios changed the title Add a Vite host and Playwright harness for browser tests test(e2e): add a Vite host and Playwright harness Sep 26, 2026
@TheGreatAxios
TheGreatAxios added this pull request to stack #75 September 26, 2026 01:57
@TheGreatAxios
TheGreatAxios force-pushed the cl-9126-react-ui-add-tiny-vite-host-harness-for-playwright-e2e branch from 3a0eada to 4463f11 Compare September 27, 2026 19:08
@TheGreatAxios TheGreatAxios changed the title test(e2e): add a Vite host and Playwright harness test(e2e): add a Playwright harness over a packed Vite host Sep 27, 2026
test:e2e packs the package into a throwaway Vite host built by
e2e/helpers.ts and runs the Playwright specs in e2e/ against it, after
the existing exports check. CI installs Chromium first.
@TheGreatAxios
TheGreatAxios force-pushed the cl-9126-react-ui-add-tiny-vite-host-harness-for-playwright-e2e branch from 4463f11 to 5a0fc28 Compare September 27, 2026 19:11
@TheGreatAxios
TheGreatAxios merged commit d38161d into main Sep 27, 2026
2 checks passed
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