72 lines
1.6 KiB
Markdown
72 lines
1.6 KiB
Markdown
# T220 — test-fe-be-live-integration
|
||
|
||
> Status: `todo`
|
||
> Milestone: `M6`
|
||
> Kind: `test`
|
||
> Est. change: `~200 lines` (target 100–200)
|
||
|
||
## Goal
|
||
|
||
完成後系統應:apps/web 對真 gateway 整合測(非 mock)
|
||
|
||
## Depends on
|
||
|
||
- T135
|
||
- T155
|
||
- T171
|
||
- T197
|
||
- T217
|
||
- T119
|
||
- T136
|
||
|
||
## Inputs
|
||
|
||
- 讀取 / 依賴:
|
||
- vitest/playwright + LIVE_API_BASE
|
||
- Spec:`docs/product/haixun-backend/spec.md`(§9:AU-04 A-08 ST-01 USG-09 IN-08 X-02)
|
||
- 對照:`docs/product/haixun-backend/fe-spec-alignment.md`(**UI MUST**)
|
||
- 後端根:**`apps/backend`**
|
||
- **Remove(本 task 禁止實作):** 舊靈感 list/viral/bookmark/spark/searchTrends;generateFromFormula;ScoutTopic CRUD;live 以 simulate/createMock 當完成;Insights 真管線(P2)。
|
||
|
||
## Outputs
|
||
|
||
### 程式變更(預期路徑)
|
||
|
||
| 路徑 | 動作 | 說明 |
|
||
|------|------|------|
|
||
| `apps/web/package.json` | edit | test:integration |
|
||
| `apps/web/tests/integration/**` | add | auth accounts usage invite studio 抽樣 |
|
||
| `docs/product/haixun-backend/TESTING.md` | edit | FE-BE 指令 |
|
||
|
||
### 行為變更
|
||
|
||
- 至少 login/me uid number、getAi 無明文 key、usage 分欄、attach 真 url
|
||
|
||
### API / 契約(若有)
|
||
|
||
- —
|
||
|
||
### 測試交付(強制)
|
||
|
||
- `it('AU-04 me numeric uid')`
|
||
- `it('IN-08 upload returns durable url')`
|
||
|
||
## Out of scope
|
||
|
||
- 全 UI 視覺回歸
|
||
|
||
## Acceptance
|
||
|
||
- [ ] Spec/UI MUST 覆蓋:`AU-04 A-08 ST-01 USG-09 IN-08 X-02`
|
||
- [ ] 每個相關 §9 ID 有可 grep 的 case 名(`TestXX_01_…` 或完整覆蓋在里程碑 test task)
|
||
- [ ] 未實作不回 102000+空 data
|
||
- [ ] 指令:
|
||
|
||
```bash
|
||
cd apps/web && npm run test:integration
|
||
```
|
||
|
||
## Notes
|
||
|
||
—
|