-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.js
More file actions
33 lines (32 loc) · 968 Bytes
/
playwright.config.js
File metadata and controls
33 lines (32 loc) · 968 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
const { defineConfig, devices } = require("@playwright/test");
module.exports = defineConfig({
testDir: "./tests/e2e",
timeout: 30_000,
expect: {
timeout: 10_000,
},
outputDir: "output/playwright/test-results",
reporter: [["list"], ["html", { outputFolder: "output/playwright/report", open: "never" }]],
use: {
baseURL: "http://127.0.0.1:8000",
trace: "retain-on-failure",
screenshot: "only-on-failure",
video: "retain-on-failure",
},
webServer: {
command: 'cmd /c "set \"STABLE_STEERING_GENERATION_BACKEND=mock\" && set \"STABLE_STEERING_ENFORCE_GPU_RUNTIME=false\" && set \"STABLE_STEERING_ALLOW_TEST_MOCK_BACKEND=true\" && python scripts/run_dev.py"',
url: "http://127.0.0.1:8000",
reuseExistingServer: true,
timeout: 120_000,
},
projects: [
{
name: "chrome",
use: {
...devices["Desktop Chrome"],
browserName: "chromium",
channel: "chrome",
},
},
],
});