23 lines
557 B
TypeScript
23 lines
557 B
TypeScript
import { defineConfig } from '@playwright/test'
|
|
|
|
const baseURL = process.env.PLAYWRIGHT_BASE_URL || 'http://127.0.0.1:5173'
|
|
|
|
export default defineConfig({
|
|
testDir: './tests/e2e',
|
|
timeout: 600_000,
|
|
fullyParallel: false,
|
|
use: {
|
|
baseURL,
|
|
viewport: { width: 1280, height: 900 },
|
|
trace: 'retain-on-failure',
|
|
screenshot: 'only-on-failure',
|
|
video: 'retain-on-failure'
|
|
},
|
|
webServer: {
|
|
command: 'pnpm dev:h5 -- --host 127.0.0.1 --port 5173',
|
|
url: baseURL,
|
|
reuseExistingServer: !process.env.CI,
|
|
timeout: 120_000
|
|
}
|
|
})
|