-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
37 lines (31 loc) · 987 Bytes
/
playwright.config.ts
File metadata and controls
37 lines (31 loc) · 987 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
36
37
import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./tests/e2e",
testMatch: "*.spec.ts",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 2 : 10,
reporter: process.env.CI ? "github" : [["html", { open: "never" }]],
timeout: 30_000,
expect: {
timeout: 10_000,
},
use: {
// No baseURL — each test gets a daemon on an ephemeral port via the daemon fixture
// Tests use daemon.baseUrl for API calls and page.goto(`${daemon.baseUrl}/...`) for navigation
trace: "on-first-retry",
screenshot: "only-on-failure",
video: "retain-on-failure",
actionTimeout: 10_000,
},
// No webServer - daemon is started by test fixture (test-base.ts)
// The daemon serves both the API and the built web UI
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
outputDir: "test-results",
});