-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
39 lines (38 loc) · 1.31 KB
/
Copy pathplaywright.config.ts
File metadata and controls
39 lines (38 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { defineConfig } from '@playwright/test'
/**
* Playwright config for renderer-only E2E (Phase 6, Plan C).
*
* `tauri-driver` is unsupported on macOS in Tauri 2 (no WebDriver
* bridge for WKWebView). Until F-E2E-LINUX-CI lands a Linux runner
* that drives `tauri dev` via tauri-driver, we exercise the built
* renderer against `vite preview` with `window.__TAURI_INTERNALS__`
* faked client-side via `tests/e2e/fixtures/tauri-shim.ts`.
*
* Catches: Vue mount, Pinia store wiring, click handlers, theme
* application, hash-router transitions, muya markdown
* rendering.
* Does NOT: Real Tauri IPC, cross-window broadcast, native menus,
* OS dialogs, save/close prompts on quit.
*/
export default defineConfig({
testDir: './tests/e2e',
testIgnore: ['**/fixtures/**'],
timeout: 30_000,
fullyParallel: false, // single-window assumption
workers: 1,
reporter: 'list',
use: {
baseURL: 'http://localhost:4173',
trace: 'on-first-retry',
// Renderer is heavy — give the page some breathing room.
actionTimeout: 10_000,
navigationTimeout: 20_000
},
webServer: {
command: 'npm run preview',
port: 4173,
timeout: 120_000,
reuseExistingServer: !process.env.CI
},
projects: [{ name: 'chromium', use: { browserName: 'chromium' } }]
})