Parcourir la source

docs(tdd): R-20261205-0830 web-4091测试执行(E2E 5/6·Jest fe 840/890 34红·Jest web 230/246 16红·lg pytest 0/51 EXIT=4凭据缺失·6 blocker承袭未实测·窗口src0)

E2E Test Bot il y a 16 heures
Parent
commit
8655234a4c
1 fichiers modifiés avec 56 ajouts et 0 suppressions
  1. 56 0
      docs/tdd/orchestration/report-exec-web-4091-2026-12-05-0830.md

+ 56 - 0
docs/tdd/orchestration/report-exec-web-4091-2026-12-05-0830.md

@@ -0,0 +1,56 @@
+# 测试执行报告 · web-4091(本机 frontend)· R-20261205-0830
+
+- 时间:2026-12-05 08:06–08:32(本机 D:\cfc @ cfclub)
+- 基线:开工前 `git pull --rebase --autostash origin cfclub` 成功(rebase 31 提交,WIP 保留);HEAD `ff9cc02dd`→提交后见 §4
+- 执行纪律:浏览器任务单发(仅 1 个 Playwright 任务);Jest/pytest 后台并行;未改 src、未改用例;凭据仅环境变量注入(本机 `LLM_API_KEY/OPENAI_API_KEY` 均未设置,如实记录)
+
+## 1. 套件 + 命令 + 实测数字
+
+| # | 套件 | 命令 | 实测 | EXIT |
+|---|------|------|------|------|
+| 1 | frontend-mobile E2E(Playwright live,cfc.iwintrue.com/frontend/) | `cd tests && npx playwright test -c playwright.config.live.js --project=frontend-mobile --reporter=list --output=d:/cfc/tests/.r4091_e2e_out` | **5 过 / 1 红 / 0 跳**(6 例,3.3m;R416 守卫 PW_COPY_OK 通过) | 1 |
+| 2 | cfc-frontend Jest(双端之一) | `cd cfc-frontend && npm test -- --silent` | 74 套件 **56 过 / 18 红**;890 例 **840 过 / 34 红 / 16 跳**;288.4s | 1 |
+| 3 | cfc-web Jest(双端之二) | `cd cfc-web && npm test -- --silent` | 38 套件 **32 过 / 6 红**;246 例 **230 过 / 16 红**;336.5s | 1 |
+| 4 | cfc-langgraph pytest 有界子集(51 例域,640s cap) | `cd cfc-langgraph && timeout -k 10 640 .venv/Scripts/python.exe -m pytest tests --ignore=tests/qna -q --tb=line` | **0 例执行**:收集期 `EXIT=4`(pydantic `Settings().llm_api_key` `Field required`,本机无 `.env`、无 `LLM_API_KEY` 环境变量);进程自退未挂起(08:08→08:17,无 124 强杀) | 4 |
+
+环境探针:`9082/9000/4090` 本机全部**连接拒绝(000,未在听)**;`POST cfc.iwintrue.com/api/system/health → 200/323B`(网关真指纹**第 7 轮**复证);`GET /frontend/ → 200/1034B`;`ai.etotem.com.cn/health → 200/15B`。
+
+## 2. 红例清单(原样断言 + 归因)
+
+### 2.1 E2E(1 红)
+- **TC-F-U02** `frontend-live.spec.js:81`:`expect(body).toMatch(/沙盘|五维/)` → 首页正文无「沙盘/五维」字样(实收为营销引流文案:「为什么选择浠艾福…三步开启全家健康之旅…身智富行心…」)。**归因:代码型(UI 数据门控/契约未跟进)**——`index-home/index.vue:182` `WuxingSandbox` 仅 `v-else-if="sandboxData"` 渲染,游客无数据不渲染;R416(11-27)基线 6/6 全绿 → 11-27~12-05 窗口部署/改版导致契约漂移,**待研发裁决是否游客态应显沙盘**。其余 5 例(U01/U03/U04/U05/U06)全绿。
+
+### 2.2 cfc-frontend Jest(18 套件 / 34 例,分四族)
+- **环境型·路径假设(10 套件)**:`TaskStageReminder/TaskNoDeadlineVisible/TaskExpiry/TaskExpiryCrossDayOnly/TaskExcludeTemplate/TaskEarlyVisibility/RecipeNoFallback/ChildTaskExpiryReminder/AdminPageTasksExcludeTemplate/task-today-overdue-visible` 全部 `ENOENT: no such file or directory, open 'D:\cfc-backend\src\main\java\...'`——`resolve(__dirname,'../../../cfc-backend/…')` 在 D:\cfc 布局解析到不存在的 `D:\cfc-backend`(该批 spec 12-04 `0015098c9 restore(batch 11/28)` 恢复入库)。
+- **环境型·依赖损坏(2 套件)**:`family-members.joinRequestCardInfo`、`games/1a2b` → `Cannot find module '…\node_modules\iconv-lite\lib\index.js'`(jsdom 链 node_modules 安装不完整)。
+- **代码型·契约漂移(3 套件,11-24 承袭红仍在)**:`diet/recommendation.viewKeyAndDelete:343` `expect(template).not.toContain('替换')` 失败;`growthHistory.dayGroupView:287` RED-A7 `Expected: 6 / Received: 7`(用例自注「预期红」);`signature.consignee:150` `stubs.onConfirm` 0 次调用 + `:137` `/\<hand-signature/` 未匹配。
+- **代码型·实现缺口候选(3 套件,本轮新增红,非 11-24 承袭)**:`report-upload-guide-config:126` `typeof getComputed(component).sortedGuideTypes` Expected "function" Received "undefined";`taskHistory.view:1102` `/@click="goToTaskHistory"/` 未在 profile.vue 命中;`aiyunyi.detectPage.contract:224` `vm.startAiDetect()` 后 `uni.navigateTo` 0 次调用。
+
+### 2.3 cfc-web Jest(6 套件 / 16 例,同族同源)
+- `FamilyWorkbench.contract` / `workbenchRedesign` / `dimensions` / `FamilyWorkbench.spec`:源扫描断言 `/cfDrawerVisible\s*=\s*true/`、`/CF值获取(来源与流水)/`、`/res\.data\.cfSummary/`、`/v-for="\(card,\s*idx\) in cards"/` 均未命中现 `FamilyWorkbench.vue`(现为 `kpiItems`/`kpiValue` 重构版)。**归因:代码型(源重构后契约测试未跟进,疑似 12-04 restore 批次新旧错位)**,待研发裁决。
+- `ReportDrawerProxy.contract:37`:`/el-tag|StatusTag|statusTag/` 未命中。**代码型(同源)**。
+- `Dashboard.cardTitleWrap:19/30`:`block('.dwell-card,\n.hot-card')` 返回 `""` → `min-width:0`/`white-space:normal` 断言落空(模板有 `.dwell-card` 但 style 段无该选择器块)。**代码型**。
+
+## 3. 承袭项(6 长期 blocker,窗口 src 检查 + 探针,无恢复信号 → 承袭·未实测)
+
+恢复信号判据=health 200 **且** 窗口(12-05 00:00 起)有针对该 blocker 的 src 提交。`git log --since=2026-12-05 00:00 -- cfc-backend cfc-frontend cfc-web cfc-langgraph dan` → **0 笔**(12-01 以来仅 restore 批次 28 笔 + task/share/aiyunyi/food 域 feat,无 6 blocker 定向提交)→ 条件②不成立:
+
+| Blocker | 本轮探针 | 状态 |
+|---|---|---|
+| G-304-1(跨家庭越权 7 点位) | 窗口 src=0;无定向探针 | 承袭·未实测(同 0706/0710/0730 轮,连续 ≥3 轮) |
+| B-260-1(法务页 404) | `/web/privacy.html`+`/web/agreement.html` 均 **404**(复证) | 承袭·未实测,blocker 持续 |
+| B-325-1(lg pytest 挂起) | 本轮 pytest 进程自退无 124 强杀,但收集期 EXIT=4 未验证到运行段 | 承袭·未实测 |
+| N-R373-1(网关 502) | health POST 200/323B(第 7 轮复证,502 未现) | 承袭·未实测(仅探针级证据,未全量复测) |
+| N-R373-2(lg 上游 ConnectError) | `ai.etotem.com.cn/health` 200/15B;上游未验 | 承袭·未实测 |
+| G9(覆盖率 ≥20%) | 窗口 src=0 | 承袭·未实测 |
+
+另:lg pytest 51 例本轮因 `llm_api_key` 凭据未注入 **0 例执行(EXIT=4 收集期阻断,环境型)**,不得记为通过。
+
+## 4. 版本管理
+- 开工 `git pull --rebase --autostash`:rebase 31 提交成功(remote `dc35fb1c6` 已并入);tracked 脏 1 = `report-test-2026-12-05-0336.md`(他人 WIP,只报不动)。
+- 提交:仅本报告单路径 `git add -f docs/tdd/orchestration/report-exec-web-4091-2026-12-05-0830.md`。
+- **commit sha:`<待填>`**;收尾 `git pull --rebase` + `git push origin cfclub`(本轮 fetch 已通,push 结果待填)。
+- 证据产物(未入库,留工作区):`.r4091_e2e_fe.out` / `.r4091_jest_fe.out` / `.r4091_jest_web.out` / `.r4091_lg_pytest.log` / `tests/.r4091_e2e_out/`。
+
+## 5. 一句话总结
+本机 4 套件实跑:E2E 5/6、Jest fe 840/890(34 红 16 跳)、Jest web 230/246(16 红)、lg pytest 收集期 0/51(凭据缺失 EXIT=4);6 长期 blocker 窗口 src=0 全部承袭·未实测,新增 4 族红例(10 环境路径 + 2 依赖损坏 + 3 承袭契约漂移 + 3 实现缺口候选 + web 6 套件重构错位)已原样上报待登记。