forked from dflex-js/dflex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaywright.config.ts
43 lines (38 loc) · 885 Bytes
/
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
/* eslint-disable import/no-extraneous-dependencies */
import { PlaywrightTestConfig, devices } from "@playwright/test";
const { CI } = process.env;
const IS_CI = CI === "true";
const testDir = "./packages/dflex-dnd-playground/tests/";
const baseURL = "http://localhost:3001";
const config: PlaywrightTestConfig = {
forbidOnly: IS_CI,
retries: IS_CI ? 4 : 0,
use: {
// trace: "on-first-retry",
video: "retain-on-failure",
navigationTimeout: 30000,
baseURL,
viewport: {
height: 1080,
width: 1920,
},
},
projects: [
{
name: "chromium",
testDir,
use: { ...devices["Desktop Chrome"] },
},
{
name: "firefox",
testDir,
use: { ...devices["Desktop Firefox"] },
},
{
name: "webkit",
testDir,
use: { ...devices["Desktop Safari"] },
},
],
};
export default config;