Files
caddy-proxy-manager/tests/playwright.config.ts
fuomag9 7f4a268cf7 Fix flaky E2E tests: strict mode violations, OAuth redirect, parallelism
- Set workers: 1 to eliminate parallelism race conditions
- Fix groups test: use .first() for "0 members" assertion
- Fix access-control helper: match by name instead of generic "Delete List"
- Fix forward-auth-oauth: target Dex button specifically, handle /login in Dex URL
- Add comprehensive API security E2E tests (316 tests)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 23:17:49 +02:00

30 lines
732 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
import { resolve } from 'node:path';
export default defineConfig({
testDir: './e2e',
globalSetup: './global-setup.ts',
globalTeardown: './global-teardown.ts',
fullyParallel: false,
workers: 1,
retries: 0,
timeout: 60_000, // functional tests need time for Caddy reloads
reporter: 'list',
use: {
baseURL: 'http://localhost:3000',
storageState: resolve(__dirname, '.auth/admin.json'),
trace: 'on-first-retry',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'mobile-iphone',
use: { ...devices['iPhone 15'] },
testMatch: '**/mobile/**/*.spec.ts',
},
],
});