Files
frontend-miniapp/playwright.config.ts
lyf e48a8bb626
Some checks failed
CI / verify (push) Has been cancelled
完善三维切换浏览器验证
2026-07-13 19:34:26 +08:00

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
}
})