Files
kaptan/ground-suite/playwright.config.ts
T
Onur Özkan 6e15063502 save
Signed-off-by: Onur Özkan <work@onurozkan.dev>
2026-08-17 18:51:40 +03:00

27 lines
806 B
TypeScript

import { defineConfig } from '@playwright/test';
const environment = globalThis as typeof globalThis & { process?: { env: Record<string, string | undefined> } };
export default defineConfig({
testDir: './tests/e2e',
fullyParallel: false,
workers: 1,
retries: 0,
reporter: 'line',
use: {
baseURL: 'http://127.0.0.1:4174',
viewport: { width: 1366, height: 768 },
trace: 'retain-on-failure',
screenshot: 'only-on-failure',
launchOptions: {
executablePath: environment.process?.env.PLAYWRIGHT_CHROMIUM_EXECUTABLE,
args: ['--no-sandbox', '--disable-gpu'],
},
},
webServer: {
command: 'npm run build && KAPTAN_GROUND_SUITE_PORT=4174 node scripts/server.mjs',
url: 'http://127.0.0.1:4174',
reuseExistingServer: false,
timeout: 30_000,
},
});