test(e2e): add isolated browser journey and cleanup supervision
Add a fake-only end-to-end stack, Firefox journey, and bounded process cleanup for normal, failed, and interrupted runs. Refs #12 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
20
frontend/playwright.e2e.config.mjs
Normal file
20
frontend/playwright.e2e.config.mjs
Normal file
@ -0,0 +1,20 @@
|
||||
import { defineConfig } from '@playwright/test'
|
||||
|
||||
export default defineConfig({
|
||||
testDir: './e2e',
|
||||
testMatch: '**/*.spec.mjs',
|
||||
fullyParallel: false,
|
||||
forbidOnly: Boolean(process.env.CI),
|
||||
retries: 0,
|
||||
workers: 1,
|
||||
reporter: 'list',
|
||||
timeout: 120_000,
|
||||
globalSetup: './e2e/global-setup.mjs',
|
||||
use: {
|
||||
browserName: 'firefox',
|
||||
serviceWorkers: 'block',
|
||||
launchOptions: { firefoxUserPrefs: { 'network.dns.disablePrefetch': true, 'network.prefetch-next': false, 'network.http.speculative-parallel-limit': 0 } },
|
||||
headless: true,
|
||||
trace: 'retain-on-failure',
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user