-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
30 lines (28 loc) · 864 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
30 lines (28 loc) · 864 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
import { defineConfig, devices } from "@playwright/test"
const externalBaseUrl = process.env.PLAYWRIGHT_BASE_URL
export default defineConfig({
testDir: "./tests",
fullyParallel: true,
forbidOnly: Boolean(process.env.CI),
retries: process.env.CI ? 2 : 0,
reporter: "line",
use: {
baseURL: externalBaseUrl ?? "http://127.0.0.1:3100",
channel: "chrome",
trace: "retain-on-failure",
...devices["Desktop Chrome"],
viewport: { width: 1920, height: 1080 },
},
webServer: externalBaseUrl
? undefined
: {
command: "pnpm dev --webpack --hostname 127.0.0.1 --port 3100",
url: "http://127.0.0.1:3100",
reuseExistingServer: !process.env.CI,
env: {
LINEAR_WEBHOOK_SECRET:
process.env.LINEAR_WEBHOOK_SECRET ??
"rooms-playwright-linear-secret",
},
},
})