Reference smoke tests never test another project's server; skills refreshed
- reference/playwright.config.ts: reuseExistingServer only with E2E_REUSE_SERVER=1. Playwright starts the built site itself on E2E_BASE_URL's port (default 3100) and fails when the port is taken — before, a dev server of another project on 3100 (intecion.com's) was tested instead. CI is unchanged: it starts nothing before test:e2e. README's production check follows. - reference/.agents/skills refreshed after the seed-exit-guard merge (ipal-form and ipal-site seed templates, ipal-reference); INDEX.md regenerated. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
03515c66c4
commit
e715b5720d
@@ -92,7 +92,11 @@ try {
|
||||
// no .env (CI)
|
||||
}
|
||||
|
||||
/** Smoke tests against a built, seeded site: pnpm build && pnpm seed && pnpm payload run e2e/create-test-admin.ts. */
|
||||
/**
|
||||
* Smoke tests against a built, seeded site: pnpm build && pnpm seed && pnpm payload run e2e/create-test-admin.ts.
|
||||
* E2E_BASE_URL picks the port (default 3100). Playwright starts its own server there and fails when the port is
|
||||
* taken, so another project's dev server is never tested by mistake; E2E_REUSE_SERVER=1 uses a server you started.
|
||||
*/
|
||||
const baseURL = process.env.E2E_BASE_URL ?? 'http://localhost:3100'
|
||||
|
||||
export default defineConfig({
|
||||
@@ -105,7 +109,7 @@ export default defineConfig({
|
||||
webServer: {
|
||||
command: 'pnpm start',
|
||||
env: { PORT: new URL(baseURL).port || '3000' },
|
||||
reuseExistingServer: true,
|
||||
reuseExistingServer: process.env.E2E_REUSE_SERVER === '1',
|
||||
url: `${baseURL}/api/health`,
|
||||
},
|
||||
workers: 1,
|
||||
|
||||
Reference in New Issue
Block a user