-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
39 lines (38 loc) · 1.26 KB
/
Copy pathplaywright.config.ts
File metadata and controls
39 lines (38 loc) · 1.26 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
33
34
35
36
37
38
39
import { defineConfig, devices } from '@playwright/test';
// Phase 0 spike config. Chromium + Firefox only (Safari explicitly out of scope).
export default defineConfig({
testDir: './tests',
// The GitHub Pages suite needs its own build and server; it has a dedicated
// config (playwright.ghpages.config.ts) and must not run here.
testIgnore: /ghpages\.spec\.ts/,
// Pyodide boot is heavy; give each test room but not forever.
timeout: 120_000,
expect: { timeout: 30_000 },
fullyParallel: false,
workers: 1,
reporter: [['list']],
use: {
baseURL: 'http://localhost:8123',
trace: 'off',
},
projects: [
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
{ name: 'firefox', use: { ...devices['Desktop Firefox'] } },
],
webServer: [
{
// Serves the raw repo for the low-level spike + integration harnesses.
command: 'node tests/server.mjs',
url: 'http://localhost:8123/spike/pyodide/index.html',
reuseExistingServer: true,
timeout: 30_000,
},
{
// Serves the real, built application - what actually ships.
command: 'npx vite build && npx vite preview --port 4173 --strictPort',
url: 'http://localhost:4173/',
reuseExistingServer: true,
timeout: 120_000,
},
],
});