Files
digital-psychology/docs/TEST_REPORT/ECR-011.md
T
jackyu66gitandCursor 13860bf1ef
ci / h5 (push) Canceled after 0s
ci / api (push) Canceled after 0s
ci / ess-docs (push) Canceled after 0s
feat(ECR-011): 昵称、首页贴士与档案 Self 唯一/合盘交叉校验
每账号仅一条 self(migration 40902);合盘只选 TA;账号昵称可改;首页穿衣/颜色/养生贴士。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-12 22:05:00 +08:00

34 lines
1.1 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.
# TEST_REPORT — ECR-011 Identity · Home tips · Profile integrity
**Date:** 2026-08-12
**Result:** **PASS**
## Commands
```bash
docker compose -f docker-compose.dev.yml up -d postgres
cd apps/api && go test ./internal/integration/ -run TestECR011ProfileIntegrityNicknameTips -count=1 -v
cd apps/api && go test ./internal/nickname/ ./internal/yijing/ ./internal/service/home/ -count=1
cd apps/user-h5 && npx vitest run \
src/pages/SynastryPage.spec.ts src/pages/ProfilePage.spec.ts \
src/pages/ImageCardPage.spec.ts src/pages/PortraitPage.spec.ts \
src/pages/RelationPage.spec.ts src/pages/AskPage.spec.ts
```
## Coverage
| Case | Result |
|------|--------|
| Second self → HTTP 409 / code 40902 | PASS |
| Synastry same id → 400 | PASS |
| Synastry self×other → 200 | PASS |
| PATCH /auth/me nickname | PASS |
| GET /home/daily-tipsclothing/palette/wellness | PASS |
| nickname / yijing / home unit | PASS |
| H5 related vitest | PASS(既有) |
## Notes
- Reviewer P1(错字段断言)已修并在 Postgres 上验证
- 勿提交 `test-results/` · `config.local.yaml`