b4600d07d8
- Adds E2E workflow with deploy/teardown scripts - Adds Playwright smoke tests for ArgoCD sidebar and app list - Uses unique release name to avoid collision with shared runner
27 lines
716 B
TypeScript
27 lines
716 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 || 'http://headlamp-e2e-argocd.headlamp-dev.svc.cluster.local',
|
|
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'],
|
|
},
|
|
],
|
|
}); |