-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
33 lines (31 loc) · 913 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
33 lines (31 loc) · 913 Bytes
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
/// <reference types="node" />
import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testMatch: /.*\.e2e\./,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: process.env.CI ? "github" : "list",
use: {
baseURL: "http://127.0.0.1:3000",
trace: "retain-on-failure",
},
webServer: {
command: "pnpm exec vite dev --host 127.0.0.1 --port 3000",
url: "http://127.0.0.1:3000",
reuseExistingServer: !process.env.CI,
timeout: 120_000,
},
// The two layouts are structurally different, not just narrower: the rail
// becomes a sticky scrolling column, the chart swaps viewBoxes, and hover
// stops existing. Both need exercising.
projects: [
{
name: "desktop",
use: { ...devices["Desktop Chrome"] },
},
{
name: "mobile",
use: { ...devices["Pixel 7"] },
},
],
});