-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
29 lines (28 loc) · 967 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
29 lines (28 loc) · 967 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
import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./e2e",
testMatch: "**/*.e2e.ts",
// The local Cloudflare runtime shares one Miniflare/D1 process. Keep the
// browser projects in one sequential lane so the audit tests the product
// rather than overwhelming the development proxy with competing isolates.
fullyParallel: false,
workers: 1,
forbidOnly: Boolean(process.env.CI),
retries: process.env.CI ? 1 : 0,
reporter: "line",
use: {
baseURL: "http://127.0.0.1:4174",
trace: "retain-on-failure",
screenshot: "only-on-failure",
},
projects: [
{ name: "chromium-desktop", use: { ...devices["Desktop Chrome"] } },
{ name: "mobile-safari", use: { ...devices["iPhone 13"] } },
],
webServer: {
command: "npm run dev -- --host 127.0.0.1 --port 4174",
url: "http://127.0.0.1:4174/api/health",
reuseExistingServer: !process.env.CI,
timeout: 120_000,
},
});