/// // TEMPORARY: verification harness for the PWA offline/update behaviour. // The spec starts the production `node build/index.js` server itself, because a "deployment" // has to restart the process (adapter-node caches build-file stats at startup). import { defineConfig } from '@playwright/test'; import { existsSync } from 'node:fs'; const chromiumExecutable = process.env.PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH ?? (existsSync('/usr/bin/chromium') ? '/usr/bin/chromium' : undefined); export default defineConfig({ testDir: './tests/e2e', testMatch: 'pwa.spec.ts', fullyParallel: false, workers: 1, retries: 0, reporter: 'list', timeout: 420_000, use: { baseURL: 'http://127.0.0.1:4179', trace: 'retain-on-failure', launchOptions: { executablePath: chromiumExecutable, args: ['--no-sandbox'] } } });