Files
Flight-Ops/playwright.config.ts
T

22 lines
528 B
TypeScript

import { defineConfig } from '@playwright/test';
const remote = !!process.env.E2E_REMOTE;
export default defineConfig({
testDir: './e2e',
timeout: 30_000,
retries: 1,
use: {
baseURL: process.env.E2E_BASE_URL ?? (remote ? 'http://flight.dev.kkhost.pl' : 'http://localhost:3000'),
trace: 'on-first-retry',
},
webServer: remote
? undefined
: {
command: 'npm run dev',
url: 'http://localhost:3000/api/airports',
reuseExistingServer: true,
timeout: 120_000,
},
});