forked from Cloud-Pipelines/pipeline-editor
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathplaywright.config.ci.ts
More file actions
50 lines (47 loc) · 1.15 KB
/
playwright.config.ci.ts
File metadata and controls
50 lines (47 loc) · 1.15 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
46
47
48
49
50
import { defineConfig, devices } from "@playwright/test";
/**
* CI Config
* Use with: npm run test:e2e:ci
*
* This config uses CI settings (1 worker, no server reuse) but runs on port 3001
* so it doesn't conflict with your dev server on port 3000
*/
export default defineConfig({
testDir: "./tests/e2e",
fullyParallel: false,
forbidOnly: true,
retries: 0,
workers: 1,
reporter: "html",
timeout: 60_000,
expect: {
/* Default assertion timeout - individual waits can override for specific slow operations */
timeout: 10_000,
},
use: {
baseURL: "http://localhost:3001",
trace: "retain-on-failure",
video: "retain-on-failure",
screenshot: "only-on-failure",
},
projects: [
{
name: "chromium",
use: {
...devices["Desktop Chrome"],
launchOptions: {
args: [
"--disable-web-security",
"--disable-features=IsolateOrigins,site-per-process",
],
},
},
},
],
webServer: {
command: "vite --port 3001",
url: "http://localhost:3001",
reuseExistingServer: false, // Force fresh server like CI
timeout: 120 * 1000,
},
});