This repository has been archived on 2026-06-16. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
headlamp-argocd-plugin/playwright.config.ts
T
Chris Farhood 8481863996 fix(e2e): add full E2E infrastructure (workflow, scripts, tests)
- Copy deploy/teardown scripts from add-e2e-infra branch
- Copy Playwright config and test files
- Add e2e script and @playwright/test devDependency
- Update E2E workflow to use pnpm-capable workflow branch with namespace param

PRI-634 follow-up
2026-05-05 12:12:37 +00:00

27 lines
760 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './e2e',
timeout: 30_000,
expect: { timeout: 10_000 },
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
reporter: 'list',
use: {
baseURL: process.env.HEADLAMP_URL || (() => { throw new Error('HEADLAMP_URL is required — run scripts/deploy-e2e-headlamp.sh first'); })(),
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
projects: [
{ name: 'setup', testMatch: /auth\.setup\.ts/, timeout: 60_000 },
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
storageState: 'e2e/.auth/state.json',
},
dependencies: ['setup'],
},
],
});