Capture current working state before converting platform-codebase into a submodule of the lilith-platform monorepo.
46 lines
1.1 KiB
TypeScript
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',
|
|
});
|