learning_ai_common_plat/dashboards/admin-web/playwright.config.ts
Saravana Kumar f77797881b
Some checks failed
Publish @bytelyst/* packages / publish (push) Failing after 11s
CI — Common Platform / Build, Test & Typecheck (push) Successful in 42s
feat(admin-web): add dashboard retry state
2026-05-30 21:02:21 +00:00

30 lines
749 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
const port = Number(process.env.ADMIN_WEB_E2E_PORT ?? 3101);
const baseURL = process.env.ADMIN_WEB_E2E_URL ?? `http://127.0.0.1:${port}`;
export default defineConfig({
testDir: './e2e',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: 'html',
use: {
baseURL,
trace: 'on-first-retry',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
webServer: {
command: `pnpm exec next dev -H 127.0.0.1 -p ${port}`,
url: baseURL,
reuseExistingServer: process.env.ADMIN_WEB_REUSE_SERVER === '1',
timeout: 60_000,
},
});