Files
caddy-proxy-manager/tests/playwright.config.ts
akanealw 99819b70ff
Some checks failed
Build and Push Docker Images (Trusted) / build-and-push (., docker/caddy/Dockerfile, caddy) (push) Has been cancelled
Build and Push Docker Images (Trusted) / build-and-push (., docker/l4-port-manager/Dockerfile, l4-port-manager) (push) Has been cancelled
Build and Push Docker Images (Trusted) / build-and-push (., docker/web/Dockerfile, web) (push) Has been cancelled
Tests / test (push) Has been cancelled
added caddy-proxy-manager for testing
2026-04-21 22:49:08 +00:00

30 lines
732 B
TypeScript
Executable File

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',
},
],
});