-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
45 lines (44 loc) · 1.12 KB
/
playwright.config.ts
File metadata and controls
45 lines (44 loc) · 1.12 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
import { defineConfig } from "@playwright/test";
export default defineConfig({
testDir: "./e2e",
timeout: 120_000, // 2 min — DHT discovery + WebRTC negotiation is slow
expect: {
timeout: 60_000, // assertions that wait for network events
},
fullyParallel: false, // tests share relay state, run sequentially
retries: 0,
use: {
baseURL: "https://localhost:8443",
ignoreHTTPSErrors: true, // self-signed cert
headless: true,
},
projects: [
{
name: "chromium",
use: { browserName: "chromium" },
},
],
// Start services if not already running.
// Order matters: relay first, then Vite, then proxy (proxy routes to both).
webServer: [
{
command: "npm run relay",
url: "http://localhost:9002",
reuseExistingServer: true,
timeout: 30_000,
},
{
command: "npm run dev",
url: "http://localhost:5173",
reuseExistingServer: true,
timeout: 30_000,
},
{
command: "npm run proxy",
url: "https://localhost:8443",
ignoreHTTPSErrors: true,
reuseExistingServer: true,
timeout: 30_000,
},
],
});