46 lines
1.2 KiB
TypeScript
Executable file
46 lines
1.2 KiB
TypeScript
Executable file
/**
|
|
* Playwright E2E Integration Test Configuration for Docker
|
|
*
|
|
* Uses @lilith/playwright-e2e-docker config factory for consistency.
|
|
* This config is used when running tests in Docker containers.
|
|
*
|
|
* 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/integration',
|
|
testMatch: '**/*.spec.ts',
|
|
appName: 'conversation-assistant',
|
|
|
|
// 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
|
|
baseURL: process.env.BASE_URL || 'http://frontend-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',
|
|
})
|