-
Notifications
You must be signed in to change notification settings - Fork 791
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
38 lines (33 loc) · 986 Bytes
/
playwright.config.ts
File metadata and controls
38 lines (33 loc) · 986 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
38
import { defineConfig, devices } from "@playwright/test";
/**
* Playwright E2E test configuration for EmDash CMS
*
* Tests run against an isolated fixture (not a demo app).
* Global setup creates a temp directory, starts a fresh dev server,
* runs setup via dev-bypass, and seeds collections with test data.
* Port 4444 is used to avoid conflicts with development servers.
*/
export default defineConfig({
testDir: "./e2e/tests",
// Disable parallel to avoid shared database state issues
fullyParallel: false,
workers: 1,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
reporter: "html",
timeout: 30000,
globalSetup: "./e2e/global-setup.ts",
globalTeardown: "./e2e/global-teardown.ts",
use: {
baseURL: "http://localhost:4444",
trace: "on-first-retry",
screenshot: "only-on-failure",
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
// No webServer — global-setup.ts handles server lifecycle
});