-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
33 lines (31 loc) · 946 Bytes
/
playwright.config.ts
File metadata and controls
33 lines (31 loc) · 946 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
32
33
import { defineConfig } from "@playwright/test";
const isCI = process.env.CI === "true";
export default defineConfig({
testDir: "./tests/e2e",
timeout: 120_000,
expect: {
timeout: 15_000, // Increased to allow worker thread encoding import (~10s)
},
fullyParallel: true,
forbidOnly: isCI,
retries: isCI ? 1 : 0,
reporter: [["list"], ["html", { outputFolder: "artifacts/playwright-report", open: "never" }]],
use: {
trace: isCI ? "on-first-retry" : "retain-on-failure",
screenshot: "only-on-failure",
video: {
mode: "on",
size: { width: 1280, height: 720 },
},
},
outputDir: "artifacts/playwright-output",
projects: [
{
name: "electron",
testDir: "./tests/e2e",
// Electron tests are resource-intensive (each spawns a full browser).
// Limit parallelism to avoid timing issues with transient UI elements like toasts.
fullyParallel: false,
},
],
});