Files
ObsiGate/playwright.config.ts
T
bruno 3f11f4715c
CI / lint (push) Successful in 25s
CI / security (push) Successful in 13s
CI / test (push) Successful in 31s
CI / build (push) Successful in 7s
CI / e2e (push) Failing after 37s
fix: E2E port conflict — 2020→2029 + cleanup stale container
- Port 2020 already in use on CI runner
- Changed to port 2029 in CI workflow + playwright config + test
- Added docker rm -f obsigate-e2e before starting
2026-07-24 12:03:53 -04:00

32 lines
693 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './tests/e2e',
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
workers: 1,
reporter: process.env.CI ? 'github' : 'list',
timeout: 60000,
expect: { timeout: 10000 },
use: {
baseURL: process.env.BASE_URL || 'http://localhost:2029',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
projects: [
{
name: 'chromium-desktop',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'chromium-mobile',
use: { ...devices['Pixel 5'] },
},
],
webServer: process.env.CI ? [] : [],
});