-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
56 lines (53 loc) · 1.24 KB
/
playwright.config.ts
File metadata and controls
56 lines (53 loc) · 1.24 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
51
52
53
54
55
56
import type { PlaywrightTestConfig } from "@playwright/test";
import { devices } from "@playwright/test";
import dotenv from "dotenv";
dotenv.config();
const config: PlaywrightTestConfig = {
globalSetup: "./global-setup.ts",
globalTeardown: "./global-teardown.ts",
testDir: "./e2e/tests",
timeout: 5 * 10000,
expect: {
timeout: 5000,
},
forbidOnly: !!process.env.CI,
retries: 0,
workers: process.env.CI ? 1 : undefined,
reporter: [["html", { open: "never" }]],
use: {
storageState: "storageState.json",
actionTimeout: 0,
screenshot: "only-on-failure",
video: "retain-on-failure",
viewport: { width: 1300, height: 720 },
trace: "retain-on-failure",
baseURL: process.env.ENV_URL,
launchOptions: {
logger: {
isEnabled: () => false,
log: (name, severity, message) =>
// eslint-disable-next-line no-console
console.log(`${name}: ${message}`),
},
},
},
projects: [
{
name: "Chromium",
use: {
browserName: "chromium",
},
},
{
name: "safari",
use: { ...devices["Desktop Safari"] },
},
{
name: "firefox",
use: {
browserName: "firefox",
},
},
],
};
export default config;