-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathplaywright.config.ts
55 lines (52 loc) · 1.22 KB
/
playwright.config.ts
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
51
52
53
54
55
import { type PlaywrightTestConfig } from "@playwright/test";
import dotenv from "dotenv";
import path from "path";
dotenv.config({ path: path.join(__dirname, ".env") });
dotenv.config({ path: path.join(__dirname, ".env.test") });
const config: PlaywrightTestConfig = {
timeout: 60000,
globalSetup: require.resolve("tests/e2e/global-setup"),
globalTeardown: require.resolve("tests/e2e/global-teardown"),
workers: 1,
use: {
baseURL: process.env.NEXT_PUBLIC_APP_URL,
browserName: "chromium",
screenshot: "only-on-failure",
video: "retain-on-failure",
trace: "retain-on-failure",
},
expect: {
timeout: 30000,
},
projects: [
{
name: "dev-portal-stage",
testDir: "tests/e2e/specs",
testMatch: ["tests/e2e/specs/**/*.spec.ts"],
},
],
reporter: [
["list"],
["html", { open: "never" }],
[
"playwright-qase-reporter",
{
environment: "dev",
testops: {
project: "DP",
uploadAttachments: true,
run: {
complete: true,
},
},
},
],
],
webServer: {
command: "pnpm dev",
port: 3000,
timeout: 60 * 1000,
reuseExistingServer: true,
},
};
export default config;