Files
digital-psychology/docs/TEST_REPORT/ECR-001-phaseF-qa.md
T
jackyu66gitandCursor 69fa1b85d6 fix(ECR-001): 对齐 Playwright e2e 与 /psy/ base 及现 UI
E2E 改走 /psy 路径并更新过时文案断言,恢复 L3 冒烟;补充 Phase F QA 报告。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 18:34:11 +08:00

60 lines
1.8 KiB
Markdown
Raw 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.
# QA Report — ECR-001 Phase F post-ship review + functional test
**Date:** 2026-08-05
**Target:** `e735aa4` (+ local e2e harness fix for `/psy/`)
**Tier:** Standard smoke
## Code Review
**Decision: PASS**(与 `docs/CODE_REVIEW/ECR-001-phaseF-h5.md` 一致)
- 无接线/行为 blockers
- Should-fix 已在合入前修完
- 残留 nitsScale 交互单测仍缺;Relation/ImageCard router-link stub warnvue-tsc 仓库级既有错误
## Automated tests
| Suite | Result |
|-------|--------|
| `npm run test:h5` | PASS 15 files / 35 tests |
| `npm run test:e2e` | PASS 2/2(修 harness 后) |
| Live API `healthz` / create profile / star / ask quota / scales | PASS |
| H5 `http://localhost:5173/psy/` + `/psy/api` proxy | PASS(注意 Vite 仅监听 IPv6/`localhost` |
## E2E harness bug found & fixed(未推送)
根因:Vite `base: '/psy/'` 后,Playwright `goto('/star')` 落到站点根,被 Vite 提示改去 `/psy/star`
另:断言仍用旧文案(「星象性格」「个人画像」「意象卡片」标题、logo 位置等)。
本地已改:
- `e2e/*.spec.ts`:路径前缀 `/psy/` + 对齐现 UI
- 注释说明 Playwright 绝对路径忽略 base path
## Live API smoke evidence
```
ping ok
create profile ok
star report id + summary ok
ask quota remaining=3
membership inactive
scales 9 items
```
## Manual browse
gstack `browse` 因本机 Playwright chromium_headless_shell 未装全未能启动;改由 Playwright e2emock API+ curl 实机 API/代理覆盖。
## Residual risk
- 未做真人浏览器点触(Ask 发消息 / Scale 全流程 / Report 运势「一生」)— 建议本地打开 `http://localhost:5173/psy/` 点一遍
- e2e 修复尚未 commit/push
## Gate
- [x] Code review PASS
- [x] Unit + E2E green
- [x] API smoke PASS
- [ ] Human visual smoke(可选)
- [ ] Commit e2e harness fix