-
-
Notifications
You must be signed in to change notification settings - Fork 117
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
35 lines (32 loc) · 944 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
35 lines (32 loc) · 944 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
34
35
import { defineConfig, devices } from "@playwright/test";
// Helmor's production target is Tauri's macOS WebKit webview, so the E2E
// harness runs against WebKit only — Chromium/Firefox add test time without
// getting us closer to production fidelity.
const PORT = 1430;
export default defineConfig({
testDir: "./e2e/tests",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: process.env.CI ? [["list"], ["html", { open: "never" }]] : "list",
use: {
baseURL: `http://localhost:${PORT}`,
trace: "retain-on-failure",
video: "retain-on-failure",
},
projects: [
{
name: "webkit",
use: { ...devices["Desktop Safari"] },
},
],
webServer: {
command: "bun x vite --config vite.e2e.config.ts",
url: `http://localhost:${PORT}`,
reuseExistingServer: !process.env.CI,
timeout: 120_000,
stdout: "pipe",
stderr: "pipe",
},
});