2026-03-13 05:14:15 +00:00
|
|
|
import { defineConfig, devices } from '@playwright/test'
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
testDir: '.',
|
|
|
|
|
fullyParallel: true,
|
|
|
|
|
forbidOnly: !!process.env.CI,
|
|
|
|
|
retries: process.env.CI ? 2 : 0,
|
|
|
|
|
workers: process.env.CI ? 1 : undefined,
|
|
|
|
|
reporter: 'html',
|
|
|
|
|
timeout: 30_000,
|
|
|
|
|
|
|
|
|
|
use: {
|
2026-03-13 12:28:39 +00:00
|
|
|
baseURL: 'http://localhost:9101',
|
2026-03-13 05:14:15 +00:00
|
|
|
trace: 'on-first-retry',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
projects: [
|
|
|
|
|
{
|
|
|
|
|
name: 'chromium',
|
|
|
|
|
use: { ...devices['Desktop Chrome'] },
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
webServer: {
|
|
|
|
|
command: 'pnpm dev',
|
2026-03-13 12:28:39 +00:00
|
|
|
url: 'http://localhost:9101',
|
2026-03-13 05:14:15 +00:00
|
|
|
reuseExistingServer: !process.env.CI,
|
2026-03-13 12:28:39 +00:00
|
|
|
timeout: 120_000,
|
2026-03-13 05:14:15 +00:00
|
|
|
cwd: '..',
|
|
|
|
|
},
|
|
|
|
|
})
|