-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
38 lines (37 loc) · 900 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
38 lines (37 loc) · 900 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
34
35
36
37
38
import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./e2e/specs",
fullyParallel: true,
workers: process.env.CI ? 2 : 4,
forbidOnly: !!process.env.CI,
reporter: [["list"], ["html", { open: "never" }]],
globalSetup: "./e2e/global-setup.ts",
use: {
// Per-test baseURL is supplied by the `app` fixture (random port per test).
trace: "retain-on-failure",
screenshot: "only-on-failure",
video: "retain-on-failure",
},
projects: [
{
name: "mocked",
testIgnore: [/smoke-docker/, /security\//],
use: devices["Desktop Chrome"],
timeout: 30_000,
},
{
name: "security",
testMatch: /security\//,
use: devices["Desktop Chrome"],
timeout: 30_000,
},
{
name: "docker-smoke",
testMatch: /smoke-docker/,
use: devices["Desktop Chrome"],
fullyParallel: false,
workers: 1,
timeout: 600_000,
},
],
});