-
Notifications
You must be signed in to change notification settings - Fork 5k
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
31 lines (30 loc) · 980 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
31 lines (30 loc) · 980 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 } from '@playwright/test'
export default defineConfig({
testDir: './e2e',
testMatch: /.*\.spec\.ts$/,
// Electron app fixture launches a single Electron process per test —
// running them in parallel would multi-instance Electron + aria2 and
// require coordinated port allocation across workers. Keep it serial.
workers: 1,
fullyParallel: false,
retries: process.env.CI ? 1 : 0,
reporter: process.env.CI
? [
['list'],
[
'html',
{ open: 'never', outputFolder: 'output/playwright/reports/electron' },
],
]
: [['list']],
// Most assertions wait for UI; allow a generous default since the
// first launch also boots aria2 and runs settings migration.
timeout: 60_000,
expect: { timeout: 10_000 },
use: {
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
globalSetup: './e2e/global-setup.ts',
outputDir: 'output/playwright/test-results/electron',
})