platform-codebase/features/conversation-assistant/frontend-dev/playwright.e2e.config.ts

41 lines
958 B
TypeScript
Executable file

import { createPlaywrightConfig } from '@lilith/playwright-e2e-docker';
/**
* Playwright E2E Integration Test Configuration
*
* Uses @lilith/playwright-e2e-docker for Docker-based testing.
*
* Run with: pnpm test:e2e:integration
*/
export default createPlaywrightConfig({
testDir: './e2e/integration',
appName: 'conversation-assistant',
// Use chromium only for integration tests
devicePreset: 'chromium-only',
// Base URL from environment (set by Docker)
baseURL: process.env.BASE_URL || 'http://localhost:5173',
// Timeouts
timeout: 60000,
expectTimeout: 15000,
actionTimeout: 15000,
navigationTimeout: 30000,
// Run sequentially for database isolation
fullyParallel: false,
workers: 1,
// Retries in CI
retries: process.env.CI ? 2 : 0,
// Recording
video: 'retain-on-failure',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
// Output
outputDir: '../test-results',
reporter: 'html',
});