/** * Playwright Docker Configuration for Platform Dev * * Uses @lilith/playwright-e2e-docker config factory for consistency. * Configuration for running E2E tests in Docker environment. * Uses real database with seeded data instead of mocks. * * Usage: * docker compose -f docker-compose.e2e.yml up --build --abort-on-container-exit */ import { createPlaywrightConfig } from '@lilith/playwright-e2e-docker'; export default createPlaywrightConfig({ // Test configuration testDir: './', testMatch: '**/*.docker.e2e.ts', appName: 'platform-dev', // Timeouts (Docker environments may need longer timeouts) timeout: 60000, expectTimeout: 15000, actionTimeout: 15000, navigationTimeout: 30000, // Sequential execution for database state consistency fullyParallel: false, workers: 1, // Retries retries: 2, // Device preset - chromium only for Docker devicePreset: 'chromium-only', // Base URL - uses Docker service name (REQUIRED - set by docker-compose) baseURL: process.env.BASE_URL || 'http://platform-dev:5173', // No webServer config - services are managed by docker-compose // Recording video: 'retain-on-failure', trace: 'on-first-retry', screenshot: 'only-on-failure', // Output directory outputDir: 'test-results/artifacts', });