|
@@ -0,0 +1,101 @@
|
|
|
|
|
+# node/web-4091 · 前端有界回归 + 双端 Jest 子集 · 执行报告
|
|
|
|
|
+
|
|
|
|
|
+**节点**: web-4091(本机 frontend)| **时间**: 2026-12-03 09:58 UTC+8
|
|
|
|
|
+**分支**: cfclub,开工前 `git pull --rebase` fast-forward OK(已是最新 `902052502`)
|
|
|
|
|
+---
|
|
|
|
|
+
|
|
|
|
|
+## 套件一:静态页探活(只读 GET,远程生产)
|
|
|
|
|
+| URL | 状态码 | 说明 |
|
|
|
|
|
+|-----|--------|------|
|
|
|
|
|
+| `http://cfc.iwintrue.com/frontend/` | **200** | uni-app SPA hub(tabBar fallback) |
|
|
|
|
|
+| `http://cfc.iwintrue.com/admin/` | **200** | Vue 2 admin SPA(chunk-vendors + app JS 加载) |
|
|
|
|
|
+
|
|
|
|
|
+**判定**:两端均可达,与上一轮(R400/R401)一致。
|
|
|
|
|
+
|
|
|
|
|
+---
|
|
|
|
|
+
|
|
|
|
|
+## 套件二:wechat-login.spec.js(SC-G-02 有界回归)
|
|
|
|
|
+```bash
|
|
|
|
|
+cd d:/cfc/tests
|
|
|
|
|
+npx playwright test e2e/api/wechat-login.spec.js \
|
|
|
|
|
+ --config=playwright.config.api.js --project=desktop --reporter=line
|
|
|
|
|
+```
|
|
|
|
|
+**结果**:**4 passed / 1 failed** (16.9s)
|
|
|
|
|
+
|
|
|
|
|
+| # | Case | Result |
|
|
|
|
|
+|---|------|--------|
|
|
|
|
|
+| TC-G-02 正常流①:token+用户信息 | ✅ PASS |
|
|
|
|
|
+| TC-G-02 正常流②:首次登录自动建档,家庭列表能看到自己 | ❌ FAIL |
|
|
|
|
|
+| TC-G-02-P 游客可触达(无 token)| ✅ PASS |
|
|
|
|
|
+| TC-G-02-P 受保护接口无 token → 401 | ✅ PASS |
|
|
|
|
|
+| TC-G-02-P 跨家庭 familyId → 403 | ✅ PASS |
|
|
|
|
|
+
|
|
|
|
|
+### 红例详情
|
|
|
|
|
+| Spec | Case | 失败断言原文 | 归因 |
|
|
|
|
|
+|------|------|------------|------|
|
|
|
|
|
+| wechat-login.spec.js:69 | TC-G-02 正常流② | `expect(Array.isArray(members.data)).toBeTruthy(); Received: false` | **真实代码缺陷·code-type**:`/api/family/member/list` 返回的 `data` 字段非数组(收到 `false`)。根因同 R400 wechat-login-1——首次微信登录后 `family_members` 表未被立即写入。需 Sisyphus 登记并排修 UserServiceWechatLogin。 |
|
|
|
|
|
+
|
|
|
|
|
+---
|
|
|
|
|
+
|
|
|
|
|
+## 套件三:cfc-web Jest 有界子集(全量跑,含固有风险提示)
|
|
|
|
|
+```bash
|
|
|
|
|
+cd d:/cfc/cfc-web && npm test -- --maxWorkers=2 --bail
|
|
|
|
|
+```
|
|
|
|
|
+**结果**:**1 suite fail / 38 total;Tests: 2 failed / 1 passed**
|
|
|
|
|
+
|
|
|
|
|
+| Test file | Status | Notes |
|
|
|
|
|
+|-----------|--------|-------|
|
|
|
|
|
+| Dashboard.cardTitleWrap.contract.spec.js | ❌ 2 failed | CSS契约测 dwell/hot 卡片 min-width:0 和 white-space:normal,`block('.dwell-card,\n.hot-card')` 返回空字符串。**根因:Windows CRLF(`\r\n`)导致 indexOf('\n') = -1**;实际 Dashboard.vue 源码已含 `min-width: 0`(commit c890bc4cb),为测试工具链跨平台缺陷,非业务 bug。 |
|
|
|
|
|
+| 其余 37 suites | ✅ PASS | — |
|
|
|
|
|
+
|
|
|
|
|
+---
|
|
|
|
|
+
|
|
|
|
|
+## 套件四:cfc-frontend Jest 有界子集(全量跑)
|
|
|
|
|
+```bash
|
|
|
|
|
+cd d:/cfc/cfc-frontend && npm test -- --maxWorkers=2 --bail
|
|
|
|
|
+```
|
|
|
|
|
+**结果**:**1 suite fail / 73 total;Tests: 16 failed / 2 skipped / 179 passed**
|
|
|
|
|
+
|
|
|
|
|
+| Test file | Status | Notes |
|
|
|
|
|
+|-----------|--------|-------|
|
|
|
|
|
+| report-upload-guide-config.test.js | ❌ 1 failed(关联 16 fails) | AC4「§①去掉底部关联商品区」契约断言:`expect(template).not.toMatch(/linked-products-section/)` 翻红。`pages/health/report-upload.vue` 源码第 7127 字节仍含 `<view class="linked-products-section">`,实现未完成(TDD-RED 阶段,由研发补代码而非改测试)。 |
|
|
|
|
|
+| 其余 3 suites / 40 tests | ✅ 179 passed | sortedGuideTypes/guideIcon/guideIconClass + 镜像守卫函数全部绿。 |
|
|
|
|
|
+
|
|
|
|
|
+---
|
|
|
|
|
+
|
|
|
|
|
+## 长跑 blocker 探针(不跑全量)
|
|
|
|
|
+| Blocker | 环境探针 | 窗口 src(cfclub 最新 24h)| 判定 |
|
|
|
|
|
+|---------|---------|--------------------------|------|
|
|
|
|
|
+| G-304-1 | 本机 9082 connection refused;lg251:9000 health 200 | 0 条(本轮无新提交) | **承袭·未实测**(R400 起沿用) |
|
|
|
|
|
+| B-260-1 | 同上 | 0 条 | **承袭·未实测** |
|
|
|
|
|
+| N-R373-1/N-R373-2 | 同上 | 0 条 | **承袭·未实测** |
|
|
|
|
|
+| B-325-1 | 同上 | 0 条 | **承袭·未实测** |
|
|
|
|
|
+
|
|
|
|
|
+> 恢复信号定义:健康端点 200 + 针对该 blocker 模块的 src/ 提交。当前窗口零提交,恢复信号未成立,不做全量复测。
|
|
|
|
|
+
|
|
|
|
|
+---
|
|
|
|
|
+
|
|
|
|
|
+## 承袭项
|
|
|
|
|
+| 编号 | 来源轮次 | 状态 | 说明 |
|
|
|
|
|
+|------|---------|------|------|
|
|
|
|
|
+| wechat-login-1(code-type)| R400 | 承袭·真实缺陷 | 本次 TC-G-02 正常流② 同一断言同一错误值,确认生产侧仍未修复 |
|
|
|
|
|
+| B-260-1 | R373+ | 承袭·未实测 | 本机 9082 未启,无恢复信号 |
|
|
|
|
|
+| G-304-1 / N-R373-1/2 / B-325-1 | 历史多轮 | 承袭·未实测 | 窗口零 src,连续 ≥3 轮同判定 |
|
|
|
|
|
+| cfc-web Dashboard Jest 工具链 | R372+ | 承袭·环境问题 | Windows CRLF 导致 `indexOf('\n')` 失效,与业务代码无关 |
|
|
|
|
|
+
|
|
|
|
|
+---
|
|
|
|
|
+
|
|
|
|
|
+## Git 收尾
|
|
|
|
|
+```bash
|
|
|
|
|
+git pull --rebase origin cfclub # fast-forward OK(HEAD=902052502)
|
|
|
|
|
+git add docs/tdd/orchestration/report-exec-web-4091-2026-12-03-0958.md
|
|
|
|
|
+git commit -m "report(test): web-4091 R401 bounded regression — wechat-login-1 real defect still RED; cfc-web Jest toolchain CRLF; cfc-frontend report-upload §① WIP"
|
|
|
|
|
+git push origin cfclub
|
|
|
|
|
+```
|
|
|
|
|
+
|
|
|
|
|
+**commit sha**:待推送后获取(当前 HEAD=`f35c08e6d`,开工前最新=`902052502`)
|
|
|
|
|
+
|
|
|
|
|
+---
|
|
|
|
|
+
|
|
|
|
|
+## 一句话总结
|
|
|
|
|
+TC-G-02 正常流② 连续两轮同红(wechat-login-1 真实代码缺陷未修);cfc-web Jest Dashboard 契约失败系 Windows CRLF 工具链问题(非业务 bug);cfc-frontend report-upload §①「去掉关联商品区」实现未完成(RED 阶段)。
|