feat(e2e): 添加测试脚本命令

- test:e2e:journeys - 运行用户旅程测试
- test:e2e:role-based - 运行角色基础测试
- test:e2e:headed - 有头模式运行测试
- test:e2e:debug - 调试模式运行测试
This commit is contained in:
张翔
2026-04-07 08:20:40 +08:00
parent bfdfbc3093
commit a113be036a
+4
View File
@@ -16,6 +16,10 @@
"test:unit": "vitest --run --coverage",
"test:coverage": "vitest --run --coverage",
"test:e2e": "playwright test",
"test:e2e:journeys": "playwright test --project=journeys",
"test:e2e:role-based": "playwright test --project=role-based-tests",
"test:e2e:headed": "playwright test --headed",
"test:e2e:debug": "playwright test --debug",
"test:e2e:perf": "node scripts/measure-e2e-performance.js",
"test:perf": "node scripts/performance-test.js performance",
"test:load": "node scripts/performance-test.js load",