-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplaywright.compatibility.config.ts
More file actions
41 lines (40 loc) · 1.05 KB
/
Copy pathplaywright.compatibility.config.ts
File metadata and controls
41 lines (40 loc) · 1.05 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
import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./tests/browser",
testMatch: "compatibility.spec.ts",
outputDir: "./test-results/browser-compatibility",
reporter: [["list"]],
workers: 1,
use: {
baseURL: "http://127.0.0.1:4174",
trace: "retain-on-failure",
},
webServer: {
command: "npm run preview -- --port 4174",
reuseExistingServer: !process.env["CI"],
timeout: 30_000,
url: "http://127.0.0.1:4174",
},
projects: [
{
name: "desktop-chromium",
use: { ...devices["Desktop Chrome"], browserName: "chromium" },
},
{
name: "desktop-firefox",
use: { ...devices["Desktop Firefox"], browserName: "firefox" },
},
{
name: "desktop-webkit",
use: { ...devices["Desktop Safari"], browserName: "webkit" },
},
{
name: "mobile-chrome",
use: { ...devices["Pixel 7"], browserName: "chromium" },
},
{
name: "mobile-safari",
use: { ...devices["iPhone 15"], browserName: "webkit" },
},
],
});