import { defineConfig } from '@playwright/test'
export default defineConfig({
testDir: './tests/browser',
timeout: 60_000,
expect: { timeout: 20_000 },
workers: 1,
use: {
channel: 'chrome',
baseURL: process.env.PLAYGROUND_TEST_URL || 'http://localhost:5180/common-ui-plus/',
viewport: { width: 1440, height: 1000 },
trace: 'retain-on-failure',
},
webServer: process.env.PLAYGROUND_TEST_URL ? undefined : {
command: 'yarn dev:doc --port 5180 --strictPort',
url: 'http://localhost:5180/common-ui-plus/',
reuseExistingServer: false,
timeout: 120_000,
},
})