28 lines
787 B
TypeScript
28 lines
787 B
TypeScript
import { defineConfig } from '@playwright/test';
|
|
|
|
const remoteRunner = true;
|
|
|
|
if (!process.env.PW_TEST_CONNECT_WS_ENDPOINT) {
|
|
process.env.PW_TEST_CONNECT_WS_ENDPOINT = 'ws://192.168.1.4:3000/';
|
|
}
|
|
|
|
export default defineConfig({
|
|
testDir: './e2e',
|
|
// Serial execution: e2e/state.spec.ts restarts the compose container mid-run,
|
|
// which would break any map test running concurrently in another worker.
|
|
workers: 1,
|
|
timeout: 300_000,
|
|
retries: 1,
|
|
use: {
|
|
baseURL: process.env.E2E_BASE_URL ?? 'https://flight.dev.kkhost.pl',
|
|
trace: 'on-first-retry',
|
|
},
|
|
webServer: remoteRunner
|
|
? undefined
|
|
: {
|
|
command: 'docker compose up -d --build',
|
|
url: 'https://flight.dev.kkhost.pl',
|
|
reuseExistingServer: true,
|
|
timeout: 600_000,
|
|
},
|
|
}); |