platform-codebase/features/platform-dev/frontend-dev/playwright.config.ts
2026-01-20 01:48:04 -08:00

33 lines
915 B
TypeScript

/**
* Playwright E2E Configuration for Platform Dev
*
* Tests the development tools dashboard including SEO admin, translations, and image pipelines.
* Start dev server with `pnpm dev` before running tests.
*/
import { createPlaywrightConfig } from '@lilith/playwright-e2e-docker';
export default createPlaywrightConfig({
testDir: './e2e',
appName: 'platform-dev',
devicePreset: 'chromium-only',
baseURL: process.env.BASE_URL || 'http://localhost:3201',
timeout: 60000,
expectTimeout: 10000,
actionTimeout: 15000,
navigationTimeout: 30000,
fullyParallel: false,
workers: 1,
retries: process.env.CI ? 2 : 0,
video: 'retain-on-failure',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
outputDir: './test-results',
// Auto-start dev server for E2E tests
webServer: {
command: 'pnpm dev',
port: 3201,
reuseExistingServer: true,
timeout: 120000,
},
});