fix(e2e): run-pw.sh — don't set CI=true; reuse docker compose dev server

The helper previously set CI=true, which flipped Playwright's
`reuseExistingServer` to false. That caused Playwright to spawn its own
Vite dev server on :5173, colliding with the docker compose stack
(paratype-web-dev container).

Removing CI=true makes Playwright connect to the running dev server in
docker. Verified: 146/146 e2e tests pass against docker-compose.dev.yml.
0 fixmes. 0 skips. EXIT_CODE=0.
This commit is contained in:
Joey Yakimowich-Payne 2026-04-26 22:06:01 -06:00
commit 35d9d3aafb
No known key found for this signature in database

View file

@ -12,9 +12,14 @@ OUTFILE="${1:?need output file path}"
shift
# Spawn detached; touch DONE marker when complete (success or failure)
# NOTE: do NOT set CI=true — that flips Playwright's reuseExistingServer to
# false and makes it try to spawn its own webServer on :5173, which collides
# with the docker compose dev stack (paratype-web-dev). Leaving CI unset
# means reuseExistingServer=true → Playwright connects to the running dev
# server in docker.
nohup bash -c "
cd /home/joey/Projects/rules
export CI=true GIT_TERMINAL_PROMPT=0 GIT_PAGER=cat PAGER=cat
export GIT_TERMINAL_PROMPT=0 GIT_PAGER=cat PAGER=cat
bunx playwright test $* > '$OUTFILE' 2>&1
echo \"EXIT_CODE=\$?\" >> '$OUTFILE'
touch '$OUTFILE.done'