first commit

This commit is contained in:
Matt Kane
2026-04-01 10:44:22 +01:00
commit 43fcb9a131
1789 changed files with 395041 additions and 0 deletions

38
playwright.config.ts Normal file
View File

@@ -0,0 +1,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
});