test: 起 Playwright(electron) E2E 骨架 + 金标准往返测试(建→写→存→重开字节一致)

This commit is contained in:
hunter-dev
2026-08-24 22:35:09 +08:00
parent 016048b029
commit 403a28cb2f
6 changed files with 176 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
import { defineConfig } from '@playwright/test';
// Electron E2E:测试在 tests/e2e 内用 _electron.launch 启动 built main(dist-electron/main/index.js)
export default defineConfig({
testDir: './tests/e2e',
timeout: 60_000,
expect: { timeout: 15_000 },
fullyParallel: false,
workers: 1,
retries: 0,
reportDir: './tests/e2e/.report',
use: { trace: 'retain-on-failure' },
});