-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
27 lines (26 loc) · 906 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
27 lines (26 loc) · 906 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
import { defineConfig } from '@playwright/test';
/**
* Playwright config for Electron E2E tests.
*
* Run with: npm run test:e2e
*
* Prerequisite: a built app must exist before running tests. The `package`
* step in electron-forge produces the bundle we point Playwright at. We
* require it as a manual setup step instead of running it in globalSetup
* because it takes ~30s and shouldn't run on every `vitest` invocation.
*/
export default defineConfig({
testDir: './tests/e2e',
testMatch: /.*\.e2e\.ts$/,
// Electron tests can't run in parallel — they all spawn the same
// executable and share the same OS-level Electron binary cache.
workers: 1,
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
reporter: process.env.CI ? [['github'], ['list']] : 'list',
use: {
trace: 'retain-on-failure',
video: 'retain-on-failure',
},
});