Files
frontend-miniapp/playwright.config.ts
lyf 9f642ca6ed
Some checks failed
CI / verify (push) Has been cancelled
优化三维导览建筑内外自动切换
2026-07-13 18:54:55 +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: 180_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
}
})