-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
28 lines (27 loc) · 951 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
28 lines (27 loc) · 951 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
import { defineConfig, devices } from "@playwright/test";
// Serves the Vite host e2e/helpers.ts bootstraps from the packed tarball, and
// the Ladle stories build for the accessibility sweep.
export default defineConfig({
testDir: "e2e",
testMatch: "*.spec.ts",
reporter: "list",
globalTeardown: "./e2e/teardown.ts",
// Screenshots are text-free token swatches, so one baseline serves every OS.
snapshotPathTemplate: "{testDir}/__screenshots__/{arg}{ext}",
use: { baseURL: "http://localhost:4173" },
projects: [{ name: "chromium", use: devices["Desktop Chrome"] }],
webServer: [
{
command: "bun e2e/helpers.ts",
url: "http://localhost:4173/smoke",
reuseExistingServer: false,
timeout: 180_000,
},
{
command: "bun run stories:build && bunx ladle preview --port 61000",
url: "http://localhost:61000/meta.json",
reuseExistingServer: false,
timeout: 180_000,
},
],
});