Skip to content
File

Blob: playwright.config.ts

typescript27 lines
1import { defineConfig, devices } from "playwright/test";
2 
3// globalSetup picks free ports and exports PLAYWRIGHT_BASE_URL plus the
4// fake OIDC issuer so each run is hermetic and never collides with a
5// local dev server (e.g. tessera on 5174).
6const baseURL = process.env.PLAYWRIGHT_BASE_URL ?? "http://127.0.0.1:4173";
7 
8export default defineConfig({
9 testDir: "./tests/e2e",
10 globalSetup: "./tests/e2e/global-setup.ts",
11 fullyParallel: false,
12 workers: 1,
13 timeout: 60_000,
14 use: {
15 baseURL,
16 trace: "on",
17 screenshot: "on",
18 video: "on",
19 },
20 projects: [
21 {
22 name: "chromium",
23 use: devices["Desktop Chrome"],
24 },
25 ],
26});