-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
50 lines (49 loc) · 1.25 KB
/
Copy pathplaywright.config.ts
File metadata and controls
50 lines (49 loc) · 1.25 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";
import { E2E_AUTH_STATE, E2E_BASE_URL } from "./tests/e2e/auth-fixture";
export default defineConfig({
testDir: "./tests/e2e",
timeout: 60_000,
expect: {
timeout: 10_000,
},
fullyParallel: false,
reporter: [["list"]],
globalSetup: "./tests/e2e/global-setup.ts",
globalTeardown: "./tests/e2e/global-teardown.ts",
use: {
baseURL: E2E_BASE_URL,
trace: "retain-on-failure",
},
projects: [
{
name: "auth-contract",
testMatch: /auth-flow\.spec\.ts/,
use: { ...devices["Desktop Chrome"], storageState: undefined },
},
{
name: "auth-ui",
dependencies: ["auth-contract"],
testMatch: /auth-ui-flow\.spec\.ts/,
use: {
...devices["Desktop Chrome"],
storageState: E2E_AUTH_STATE,
},
},
{
name: "memo-ui",
dependencies: ["auth-ui"],
testMatch: /memo-flow\.spec\.ts/,
use: {
...devices["Desktop Chrome"],
storageState: E2E_AUTH_STATE,
},
},
],
webServer: {
command: "node ./scripts/e2e-server.mjs",
gracefulShutdown: { signal: "SIGTERM", timeout: 5_000 },
url: "http://127.0.0.1:18787",
timeout: 180_000,
reuseExistingServer: false,
},
});