-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
34 lines (31 loc) · 1.11 KB
/
playwright.config.ts
File metadata and controls
34 lines (31 loc) · 1.11 KB
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
import { defineConfig } from "@playwright/test";
// E2E config — runs only against the Playwright specs in tests/e2e/.
// Vitest is configured to exclude this directory so the two suites don't
// fight over file ownership.
//
// `dist/` must be present before tests run; the e2e suite asserts artifacts
// and loads the extension into Chromium. CI runs `yarn build` before
// `yarn test:e2e` (see CLAUDE.md release pipeline notes).
export default defineConfig({
testDir: "./tests/e2e",
testMatch: ["**/*.spec.ts"],
fullyParallel: false,
workers: 1,
// Always emit the HTML report so CI failures have an artifact we can
// upload and inspect (the verify workflow uploads playwright-report/
// when a step fails). The list reporter stays so terminal output
// remains readable.
reporter: [["list"], ["html", { open: "never" }]],
use: {
baseURL: "http://localhost:4173",
trace: "retain-on-failure",
},
webServer: {
command: "node tests/e2e/server.mjs",
url: "http://localhost:4173/",
reuseExistingServer: !process.env.CI,
stdout: "ignore",
stderr: "pipe",
timeout: 30_000,
},
});