fix: invert reuseExistingServer and remove CI="" workaround

The playwright.config.ts had `reuseExistingServer: !!process.env.CI`
which meant CI would reuse (expect) an existing server while local
dev would start one. This is backwards — in CI Playwright should
manage the server, and in local dev you likely already have one
running.

Flip to `!process.env.CI` and remove the `CI: ""` env override
from the workflow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Devin Foley
2026-03-20 13:49:03 -07:00
parent df8cc8136f
commit 652fa8223e
2 changed files with 1 additions and 2 deletions

View File

@@ -56,7 +56,6 @@ jobs:
- name: Run e2e tests - name: Run e2e tests
env: env:
PAPERCLIP_E2E_SKIP_LLM: "true" PAPERCLIP_E2E_SKIP_LLM: "true"
CI: ""
run: pnpm run test:e2e run: pnpm run test:e2e
- name: Upload Playwright report - name: Upload Playwright report

View File

@@ -25,7 +25,7 @@ export default defineConfig({
webServer: { webServer: {
command: `pnpm paperclipai run`, command: `pnpm paperclipai run`,
url: `${BASE_URL}/api/health`, url: `${BASE_URL}/api/health`,
reuseExistingServer: !!process.env.CI, reuseExistingServer: !process.env.CI,
timeout: 120_000, timeout: 120_000,
stdout: "pipe", stdout: "pipe",
stderr: "pipe", stderr: "pipe",