import { defineConfig } from '@playwright/test'; import { fileURLToPath } from 'node:url'; const report = (name: string) => fileURLToPath(new URL('./reports/' + name, import.meta.url)); export default defineConfig({ testDir: './tests', fullyParallel: false, workers: 1, retries: 0, maxFailures: 0, timeout: 45_000, expect: { timeout: 10_000 }, reporter: [ ['list'], ['html', { outputFolder: report('html'), open: 'never' }], ['junit', { outputFile: report('junit.xml') }], ['json', { outputFile: report('results.json') }], ], outputDir: './test-results', use: { baseURL: 'https://test.sb.assecutor.de', // Chromium routing stalls document.write popups in Playwright 1.63 (#43496). browserName: 'firefox', headless: true, viewport: { width: 1600, height: 1200 }, locale: 'de-DE', timezoneId: 'Europe/Berlin', serviceWorkers: 'block', screenshot: 'only-on-failure', // A trace could contain login credentials and customer data. trace: 'off', video: 'off', actionTimeout: 10_000, navigationTimeout: 30_000, }, });