-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathplaywright.config.js
More file actions
32 lines (31 loc) · 1.05 KB
/
Copy pathplaywright.config.js
File metadata and controls
32 lines (31 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { defineConfig } from '@playwright/test';
// Playwright config for the /club smoke. Drives a real Chromium against the
// Vite dev server. Kept separate from Vitest (which only globs *.test.js) by
// using the `.spec.js` suffix in `tests/e2e/`.
//
// Cold-start budget: a fresh Vite dev server needs ~30s to come up and the
// first /club hit then transforms the full three.js module graph (~30–60s
// on a CI box). The first test sets a 180s test timeout; we mirror that on
// the webServer health check so playwright doesn't kill the server before
// the cold transform finishes and bring down the next two tests with it.
export default defineConfig({
testDir: 'tests/e2e',
timeout: 120_000,
retries: 1,
fullyParallel: false,
use: {
baseURL: 'http://localhost:3000',
headless: true,
screenshot: 'only-on-failure',
video: 'retain-on-failure',
trace: 'retain-on-failure',
},
webServer: {
command: 'npm run dev',
url: 'http://localhost:3000',
timeout: 180_000,
reuseExistingServer: !process.env.CI,
stdout: 'pipe',
stderr: 'pipe',
},
});