Skip to content

Commit a33cd87

Browse files
committed
test(e2e): flatten Playwright specs into e2e/ with a helpers.ts Vite host
1 parent 139d3a6 commit a33cd87

23 files changed

Lines changed: 106 additions & 82 deletions

‎.gitignore‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ scratch/
99
build/
1010
.worktrees/
1111
.agent-state/
12-
tests/e2e/host/bun.lock
1312
test-results/
1413
playwright-report/

‎CONTRIBUTING.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ bun run build # generate → SWC → tsc → Tailwind → the contrast
2222
bun run typecheck # tsc --noEmit
2323
bun run lint # eslint .
2424
bun run dep-guard # forbidden-import checks over src/
25-
bun run test:e2e # pack, install into tests/e2e/host, run Playwright
25+
bun run test:e2e # pack, install into a Vite host, run Playwright
2626
```
2727

2828
`test:e2e` needs Chromium once: `bunx playwright install chromium`. Each scenario is a
29-
route in `tests/e2e/host/src/scenarios.tsx`, rendered against the packed tarball.
29+
route in `e2e/fixtures.tsx`, rendered against the packed tarball.
3030
The same run builds the Ladle stories and fails on any serious or critical axe
3131
violation in any story.
3232

‎bunfig.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[test]
2-
# Playwright specs under tests/ also match bun's *.spec.* pattern.
2+
# Playwright specs under e2e/ also match bun's *.spec.* pattern.
33
root = "./src"
44
preload = ["./scripts/test-dom-setup.ts"]

0 commit comments

Comments
 (0)