优化三维导览建筑内外自动切换
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
lyf
2026-07-13 18:54:55 +08:00
parent d265089875
commit 9f642ca6ed
7 changed files with 964 additions and 96 deletions

22
playwright.config.ts Normal file
View File

@@ -0,0 +1,22 @@
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
}
})