lilith-platform.live/codebase/@features/landing/frontend-public/playwright.docker.config.ts
Claude Code 25d2c7ad65 init(codebase-default): 🎉 Implement foundational directory structure with core modules and utility files
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-03-25 22:50:24 -07:00

45 lines
1.1 KiB
TypeScript
Executable file

/**
* Playwright E2E Configuration for Landing App (Docker Environment)
*
* This config is used when running tests inside Docker containers.
* Uses Docker service names instead of localhost.
*
* 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: './e2e/tests',
testMatch: /.*\.spec\.ts/,
appName: 'landing',
// Timeouts
timeout: 60000,
expectTimeout: 10000,
actionTimeout: 15000,
navigationTimeout: 30000,
// Parallelization
fullyParallel: true,
workers: 4,
// Retries (more retries in Docker due to network variability)
retries: 3,
// Device preset
devicePreset: 'chromium-only',
// Base URL - uses Docker service name
baseURL: process.env.BASE_URL || 'http://frontend:5100',
// Recording
video: 'retain-on-failure',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
// Output directory
outputDir: 'test-results/landing',
})