51 lines
1.2 KiB
TypeScript
Executable file
51 lines
1.2 KiB
TypeScript
Executable file
/**
|
|
* Playwright E2E Test Configuration
|
|
*
|
|
* Uses @lilith/playwright-e2e-docker config factory for consistency.
|
|
* For local development with Vite dev server.
|
|
*
|
|
* @see https://playwright.dev/docs/test-configuration
|
|
*/
|
|
import { createPlaywrightConfig } from '@lilith/playwright-e2e-docker'
|
|
|
|
export default createPlaywrightConfig({
|
|
// Test configuration
|
|
testDir: './e2e',
|
|
testMatch: ['**/tests/**/*.spec.ts', '**/integration/**/*.spec.ts'],
|
|
appName: 'conversation-assistant',
|
|
|
|
// Timeouts
|
|
timeout: 60000,
|
|
expectTimeout: 10000,
|
|
actionTimeout: 10000,
|
|
navigationTimeout: 30000,
|
|
|
|
// Parallel execution for local dev
|
|
fullyParallel: true,
|
|
workers: process.env.CI ? 1 : undefined,
|
|
|
|
// Retries
|
|
retries: process.env.CI ? 2 : 0,
|
|
|
|
// Device preset - all browsers for local dev
|
|
devicePreset: 'all',
|
|
|
|
// Base URL
|
|
baseURL: process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:5173',
|
|
|
|
// Local dev server
|
|
webServer: {
|
|
command: 'pnpm dev',
|
|
url: 'http://localhost:5173',
|
|
reuseExistingServer: !process.env.CI,
|
|
timeout: 120 * 1000,
|
|
},
|
|
|
|
// Recording
|
|
video: 'retain-on-failure',
|
|
trace: 'on-first-retry',
|
|
screenshot: 'only-on-failure',
|
|
|
|
// Output directory
|
|
outputDir: './test-results',
|
|
})
|