-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathplaywright.config.ts
46 lines (41 loc) · 1006 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
45
46
import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
timeout: 10 * 60 * 1000,
testDir: "./e2e",
use: {
headless: true,
screenshot: "only-on-failure",
video: "retain-on-failure",
baseURL: "http://localhost:3000",
trace: "on-first-retry",
actionTimeout: 20 * 1000,
navigationTimeout: 50 * 1000,
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
{
name: "firefox",
use: { ...devices["Desktop Firefox"] },
},
{
name: "webkit",
use: { ...devices["Desktop Safari"] },
},
{
name: "Microsoft Edge",
use: { ...devices["Desktop Edge"], channel: "msedge" },
},
],
reporter: [
["dot"],
[
"html",
{
open: "always",
},
],
],
});