veza/apps/web/playwright.config.smoke.ts
senke c2296ac1c6 test(e2e): add post-deploy smoke tests
- Add smoke-post-deploy.spec.ts for health checks
- Add playwright.config.smoke.ts (no webServer)
- Add smoke-post-deploy job to cd.yml (runs when STAGING_URL set)
- Document procedure in e2e/README.md
2026-02-14 22:45:10 +01:00

25 lines
851 B
TypeScript

/**
* Playwright config for post-deployment smoke tests.
* Does NOT start the dev server - runs against PLAYWRIGHT_BASE_URL or VITE_FRONTEND_URL.
*
* Usage: npx playwright test --config=playwright.config.smoke.ts
*/
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './e2e/tests',
testMatch: '**/smoke-post-deploy.spec.ts',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
timeout: 30000,
workers: 1,
reporter: [['html'], ['list']],
use: {
baseURL: process.env.PLAYWRIGHT_BASE_URL || process.env.VITE_FRONTEND_URL || 'http://localhost:5173',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
// No webServer - target must already be running
});