forked from calcom/cal.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playwright.config.ts
44 lines (42 loc) · 1020 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
44
import { PlaywrightTestConfig, devices } from "@playwright/test";
const config: PlaywrightTestConfig = {
forbidOnly: !!process.env.CI,
testDir: "playwright",
timeout: 60_000,
retries: process.env.CI ? 3 : 0,
reporter: "list",
globalSetup: require.resolve("./playwright/lib/globalSetup"),
webServer: {
command: "yarn start",
port: 3000,
timeout: 60_000,
reuseExistingServer: !process.env.CI,
},
use: {
baseURL: "http://localhost:3000",
locale: "en-US",
trace: "retain-on-failure",
headless: !!process.env.CI || !!process.env.PLAYWRIGHT_HEADLESS,
video: "on-first-retry",
contextOptions: {
recordVideo: {
dir: "playwright/videos",
},
},
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
/* {
name: "firefox",
use: { ...devices["Desktop Firefox"] },
},
{
name: "webkit",
use: { ...devices["Desktop Safari"] },
}, */
],
};
export default config;