Files
MetonaSqlark/playwright.config.ts
thzxx 334067d89e
CI / test (18.x) (push) Successful in 10m10s
CI / test (20.x) (push) Successful in 10m10s
CI / test (22.x) (push) Successful in 10m6s
CI / e2e (push) Successful in 9m51s
CI / test (24.x) (push) Successful in 10m28s
release: v0.5.1 — 存储后端生产级硬化(CRC-32/全库加密/WAL分片/页面化存储/多标签页锁/e2e)+ 深度审查修复(假实现接线/死代码清理)
2026-08-10 12:07:00 +08:00

25 lines
666 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* Playwright E2E 配置 — 真实 Chromium 环境验证 OPFS 存储后端
*/
import { defineConfig } from '@playwright/test';
export default defineConfig({
testDir: './tests/e2e',
timeout: 60_000,
fullyParallel: false,
workers: 1, // OPFS 有锁/配额,串行执行避免互相干扰
retries: 1,
reporter: [['list']],
use: {
baseURL: 'http://127.0.0.1:3344',
trace: 'retain-on-failure',
},
webServer: {
// Node 静态服务(与 MetonaEditor 一致,不依赖 python3
command: 'node tests/e2e/server.cjs 3344',
url: 'http://127.0.0.1:3344',
reuseExistingServer: !process.env.CI,
timeout: 30_000,
},
});