-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
34 lines (31 loc) · 841 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
34 lines (31 loc) · 841 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 port = Number(process.env.EXOCLAW_E2E_PORT ?? 7210);
export default defineConfig({
testDir: "./e2e",
fullyParallel: true,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
timeout: 45_000,
expect: {
timeout: 10_000,
},
outputDir: "output/playwright/artifacts",
reporter: [
["list"],
["html", { outputFolder: "output/playwright/report", open: "never" }],
],
use: {
baseURL: `http://127.0.0.1:${port}`,
trace: "retain-on-failure",
screenshot: "only-on-failure",
video: "retain-on-failure",
},
webServer: {
command: "./scripts/run-e2e-server.sh",
url: `http://127.0.0.1:${port}/health`,
timeout: 180_000,
reuseExistingServer: !process.env.CI,
stdout: "pipe",
stderr: "pipe",
},
});