feat(ECR-011): 昵称、首页贴士与档案 Self 唯一/合盘交叉校验
每账号仅一条 self(migration 40902);合盘只选 TA;账号昵称可改;首页穿衣/颜色/养生贴士。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# 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-tips(clothing/palette/wellness) | PASS |
|
||||
| nickname / yijing / home unit | PASS |
|
||||
| H5 related vitest | PASS(既有) |
|
||||
|
||||
## Notes
|
||||
|
||||
- Reviewer P1(错字段断言)已修并在 Postgres 上验证
|
||||
- 勿提交 `test-results/` · `config.local.yaml`
|
||||
Reference in New Issue
Block a user