-
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
28 lines (27 loc) · 685 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
28 lines (27 loc) · 685 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
import { defineConfig } from "@playwright/test";
import path from "path";
/**
* Playwright configuration for Electron end-to-end tests.
* Uses the _electron API to launch the packaged/built Electron app.
*
* Reference: https://playwright.dev/docs/api/class-electronapplication
*/
export default defineConfig({
testDir: "./test",
testMatch: "**/*.spec.ts",
timeout: 60000,
retries: 0,
reporter: [["list"], ["html", { open: "never" }]],
use: {
// screenshot on failure for debugging
screenshot: "only-on-failure",
video: "off",
},
// Single project for Electron tests
projects: [
{
name: "electron",
testDir: "./test",
},
],
});