47 lines
963 B
Markdown
47 lines
963 B
Markdown
|
|
# T554 — test-m3-today-reply-integration
|
|||
|
|
|
|||
|
|
> Status: `done`
|
|||
|
|
> Milestone: `M3`
|
|||
|
|
> Kind: `test`
|
|||
|
|
> Est. change: `~200 lines`
|
|||
|
|
|
|||
|
|
## Goal
|
|||
|
|
|
|||
|
|
完成後系統應:TD-01~TD-02、RP-01~RP-05 有整合測試,且 AccountHealth throttle 回歸不破。
|
|||
|
|
|
|||
|
|
## Depends on
|
|||
|
|
|
|||
|
|
- T547、T550
|
|||
|
|
|
|||
|
|
## Inputs
|
|||
|
|
|
|||
|
|
- Spec:`../spec.md` §9.3、§9.6(RG-02)
|
|||
|
|
|
|||
|
|
## Outputs
|
|||
|
|
|
|||
|
|
### 程式變更(預期路徑)
|
|||
|
|
|
|||
|
|
| 路徑 | 動作 | 說明 |
|
|||
|
|
|------|------|------|
|
|||
|
|
| `apps/backend/internal/logic/radar/m3_integration_test.go` | add | today/replies/send 全鏈路 |
|
|||
|
|
| `apps/web/src/pages/RadarTodayPage.test.tsx` | add | 空狀態六種原因與分組收合的元件測試 |
|
|||
|
|
|
|||
|
|
### 行為變更
|
|||
|
|
|
|||
|
|
- 無(測試)。
|
|||
|
|
|
|||
|
|
## Out of scope
|
|||
|
|
|
|||
|
|
- CRM(T576)
|
|||
|
|
|
|||
|
|
## Acceptance
|
|||
|
|
|
|||
|
|
- [x] 七個後端 ID 各有具名 test case
|
|||
|
|
- [x] 前端空狀態測試涵蓋所有 `empty_reason`
|
|||
|
|
- [x] 指令:
|
|||
|
|
|
|||
|
|
```bash
|
|||
|
|
cd apps/backend && go test ./internal/logic/radar/... -count=1
|
|||
|
|
cd apps/web && npm run test
|
|||
|
|
```
|