forked from remix-run/remix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaywright.config.ts
39 lines (36 loc) · 931 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
import type { PlaywrightTestConfig } from "@playwright/test";
import { devices } from "@playwright/test";
const config: PlaywrightTestConfig = {
testDir: ".",
testMatch: ["**/*-test.ts"],
/* Maximum time one test can run for. */
timeout: process.platform === "win32" ? 60_000 : 30_000,
fullyParallel: true,
expect: {
/* Maximum time expect() should wait for the condition to be met. */
timeout: 5_000,
},
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 3 : 0,
reporter: process.env.CI ? "dot" : [["html", { open: "never" }]],
use: { actionTimeout: 0 },
projects: [
{
name: "chromium",
use: devices["Desktop Chrome"],
},
{
name: "webkit",
use: devices["Desktop Safari"],
},
{
name: "edge",
use: devices["Desktop Edge"],
},
{
name: "firefox",
use: devices["Desktop Firefox"],
},
],
};
export default config;