-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.js
More file actions
48 lines (41 loc) · 1.04 KB
/
Copy pathplaywright.config.js
File metadata and controls
48 lines (41 loc) · 1.04 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
// @ts-check
import { defineConfig, devices } from "@playwright/test";
import { config } from "dotenv";
import { test } from "./global-setup";
config({ quiet: true });
export default defineConfig({
testDir: "./tests",
fullyParallel: true,
retries: process.env.CI ? 1 : 1,
workers: process.env.CI ? 4 : 4,
timeout: 60 * 1000,
expect: {
timeout: 15_000,
toMatchSnapshot: { maxDiffPixelRatio: 0.03 },
toHaveScreenshot: { maxDiffPixelRatio: 0.03 },
},
reporter: "html",
use: {
baseURL: process.env.BASE_URL ?? "https://essential-addons.com",
testIdAttribute: "data-id",
screenshot: "on",
trace: "on-first-retry",
video: "on-first-retry",
ignoreHTTPSErrors: true,
},
/* Configure projects for major browsers */
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"], ...test },
},
{
name: "firefox",
use: { ...devices["Desktop Firefox"], ...test },
},
{
name: "webkit",
use: { ...devices["Desktop Safari"], ...test },
},
],
});