- 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>
30 lines
732 B
TypeScript
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',
|
|
},
|
|
],
|
|
});
|