-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathplaywright.config.js
More file actions
30 lines (29 loc) · 823 Bytes
/
Copy pathplaywright.config.js
File metadata and controls
30 lines (29 loc) · 823 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
const { defineConfig, devices } = require("@playwright/test");
module.exports = defineConfig({
testDir: "./tests/e2e/specs",
outputDir: "test-results",
fullyParallel: false,
forbidOnly: Boolean(process.env.CI),
retries: process.env.CI ? 1 : 0,
workers: 1,
reporter: process.env.CI
? [["list"], ["html", { outputFolder: "playwright-report", open: "never" }]]
: [
["line"],
["html", { outputFolder: "playwright-report", open: "never" }],
],
timeout: 60_000,
expect: {
timeout: 10_000,
},
use: {
baseURL: process.env.E2E_BASE_URL || "http://127.0.0.1:8080",
locale: "en-US",
actionTimeout: 10_000,
navigationTimeout: 20_000,
screenshot: "only-on-failure",
trace: "retain-on-failure",
video: "off",
...devices["Desktop Chrome"],
},
});