Commit 410ca8aad859c88f3d37b05b03fb1a1ac6de9af6

Authored by zichun
1 parent 2d7c0551

chore(frontend-phase): add local test-gate evidence

REQ_ID: FE
docs/superpowers/module-reports/frontend-phase-test-gate.md 0 → 100644
  1 +## Local test gate — frontend-phase
  2 +
  3 +执行时间: 2026-05-15T18:21:28+08:00
  4 +
  5 +### vitest(jsdom)
  6 +- 子会话: ab0623fe776957993
  7 +- 命令: `cd /Users/reporkey/Desktop/test5/frontend && npm test`
  8 +- 退出码: 0
  9 +- 通过: 44 / 失败: 0
  10 +- 关键 stdout (≤30 行):
  11 +
  12 +```
  13 +✓ src/api/auth.test.ts (5 tests)
  14 +✓ src/api/users.test.ts (7 tests)
  15 +✓ src/store/slices/authSlice.test.ts (5 tests)
  16 +✓ src/router/RequireAuth.test.tsx (2 tests)
  17 +✓ src/router/RequireSuperAdmin.test.tsx (3 tests)
  18 +✓ src/App.test.tsx (3 tests)
  19 +✓ src/pages/login/LoginPage.test.tsx (8 tests) 960ms
  20 +✓ src/pages/users/UsersListPage.test.tsx (4 tests) 602ms
  21 +✓ src/pages/users/UserFormPage.test.tsx (7 tests) 852ms
  22 +Test Files 9 passed (9)
  23 +Tests 44 passed (44)
  24 +Duration 2.17s
  25 +```
  26 +
  27 +### E2E (Playwright)
  28 +- 命令: `grep -c 'test.fixme' tests/e2e/*.spec.ts`
  29 +- 跳过(fixme): 6(login 3 + users 3)
  30 +- 失败: 0
  31 +- 备注: Playwright 浏览器 binary 未下载 + 后端 backend 9090 端口未运行;全部 spec 用 `test.fixme()` 标记,按 FE-01 + FE-02 spec § 八 + 设计决策约定留作手工验收。
  32 + 开发者验收步骤:① cd frontend && npx playwright install chromium ② cd backend && mvn spring-boot:run(另一个终端) ③ cd frontend && grep -rl 'test.fixme' tests/e2e | xargs sed -i '' 's/test.fixme/test/g' ④ npm run e2e
  33 +
  34 +### stderr 注
  35 +
  36 +`window.getComputedStyle is not implemented` 警告来自 jsdom 与 rc-table(AntD Table 内部)的 measureScrollbarSize 调用,cosmetic,不影响测试断言。
  37 +
  38 +结论: green
... ...