Files
metabuilder/frontends/codegen/playwright.config.ts
2026-03-09 22:30:41 +00:00

38 lines
783 B
TypeScript

import { defineConfig, devices } from '@playwright/test'
export default defineConfig({
testDir: './e2e',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 1,
workers: process.env.CI ? 1 : 3,
reporter: 'html',
timeout: 60000,
expect: {
timeout: 10000,
},
use: {
baseURL: 'http://localhost:3000',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
actionTimeout: 10000,
navigationTimeout: 20000,
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
webServer: {
command: 'npm run dev -- --port 3000',
url: 'http://localhost:3000/codegen',
reuseExistingServer: true,
timeout: 120000,
stdout: 'pipe',
stderr: 'pipe',
},
})