platform-codebase/features/platform-analytics/frontend-platform/playwright.config.ts
Lilith dcae150ea6 chore: snapshot before monorepo consolidation
Capture current working state before converting platform-codebase
into a submodule of the lilith-platform monorepo.
2026-01-29 07:04:30 -08:00

46 lines
1.1 KiB
TypeScript

/**
* Playwright E2E Configuration for Analytics Frontend Public
*
* Tests the analytics dashboard pages, navigation, and filter interactions.
*
* Usage:
* bun run test:e2e - Run headless
* bun run test:e2e:ui - Run with Playwright UI
* bun run test:e2e:headed - Run headed
* bun run test:e2e:debug - Run in debug mode
*/
import { createPlaywrightConfig } from '@lilith/playwright-e2e-docker';
export default createPlaywrightConfig({
testDir: './e2e',
testMatch: /.*\.spec\.ts/,
appName: 'platform-analytics',
timeout: 60000,
expectTimeout: 10000,
actionTimeout: 15000,
navigationTimeout: 30000,
fullyParallel: true,
workers: 4,
retries: process.env.CI ? 2 : 0,
devicePreset: 'chromium-only',
baseURL: 'http://localhost:5110',
webServer: {
command: 'bun run preview --host --port 5110',
port: 5110,
reuseExistingServer: !process.env.CI,
timeout: 120000,
},
video: 'retain-on-failure',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
outputDir: 'test-results/platform-analytics',
});