-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
31 lines (30 loc) · 952 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
31 lines (30 loc) · 952 Bytes
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
import { defineConfig, devices } from '@playwright/test';
/* E2E config. The webServer block starts the app exactly the way a human does
(`npm run dev` → vite), so the e2e path matches the human path. */
export default defineConfig({
testDir: './e2e',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: 0,
reporter: [['list']],
use: {
baseURL: 'http://localhost:5173',
trace: 'on-first-retry',
},
projects: [
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
/* Firefox is scoped to the print spec: print pagination differs between
engines, so the print break behaviour must be proven on Firefox too. */
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
testMatch: /printPageBreaks\.spec\.ts/,
},
],
webServer: {
command: 'npm run dev',
url: 'http://localhost:5173',
reuseExistingServer: !process.env.CI,
timeout: 120_000,
},
});