Round 2 followup: TC-B 浏览器真实验证 (workSystem/hesuanjiancedengji)
TC-B = webapi 准备 + 浏览器 DOM 验证 跑 workSystem hesuanjiancedengji (auto convention, baseline 已有): - 浏览器 login → 侧边栏 业务示例 → 功能示例 → 核酸检测 - 列表页 → 新增 → form 编辑页 (12 inputIds) - 渲染字段: comInputField*, billRuleField*, dateField*, selectField* - 跟 baseline auto convention 完全一致 三层一致性 (TC-A → TC-C → TC-B): baseline (auto) → dacli 重建 (auto) → 浏览器渲染 (auto) 命名规范端到端保留, 9/9 form TC-C PASS + 1/1 form TC-B PASS 截图: /tmp/dacli-loop/tc-b-hesuanjiancedengji-form.png /tmp/dacli-loop/tc-b-hesuanjiancedengji-new.png /tmp/dacli-loop/tc-b-worksystem.json
This commit is contained in:
1 parent
229addcdf5
commit
5db0f36bcd
1 file changed
+35
-1
@@ -144,4 +144,38 @@
|
||||
- `dacli/docs/drift/round2-drift.json` — Round 2 漂移数据 (smartProps 修复前)
|
||||
- `dacli/docs/drift/round2-rerun-drift.json` — Round 2 rerun (smartProps 修复后)
|
||||
- `dacli/tests/integration/drift/form-drift.spec.ts` — Round 2 测试 (20 cases)
|
||||
- `/tmp/dacli-loop/round2-rerun-results.json` — RERUN baseline + rebuilt 映射
|
||||
- `/tmp/dacli-loop/round2-rerun-results.json` — RERUN baseline + rebuilt 映射
|
||||
## TC-B 浏览器真实行为验证 (workSystem/hesuanjiancedengji)
|
||||
|
||||
> **关键发现**: jnpf 6.x SPA 路由不支持直接 URL 进入 form, 必须从侧边栏菜单进入 (jnpf 动态加载).
|
||||
> testspace SPA 路由完全不工作 (连 test1 也 404), workSystem 有完整菜单可用.
|
||||
|
||||
**测试流程** (Python playwright):
|
||||
1. 浏览器 login workSystem (admin/123456)
|
||||
2. 点击侧边栏: 业务示例 → 功能示例 → 核酸检测 → 列表页
|
||||
3. 点击"新增" → form 编辑页 (12 input fields)
|
||||
4. 截图: `/tmp/dacli-loop/tc-b-hesuanjiancedengji-form.png` + `tc-b-hesuanjiancedengji-new.png`
|
||||
|
||||
**TC-B 渲染字段对比 TC-C** (hesuanjiancedengji 同一 form):
|
||||
| 层 | 字段 | 命名 |
|
||||
|----|------|------|
|
||||
| **TC-A** API | 7 字段 (姓名, 身份证号/护照, 编号, 身份证, 核酸检测时间, 联系方式, 家庭住址, 所在社区) | auto convention (comInputField*, billRuleField*, dateField*, selectField*) |
|
||||
| **TC-C** 源码层 | 9 字段 (billRuleField110, comInputField101, comInputField102, dateField105, comInputField106, comInputField107, selectField108) | 同上 |
|
||||
| **TC-B** 浏览器 DOM | 12 inputIds (comInputField101-102 + billRuleField110 + dateField105 + comInputField106-107 + selectField108 + rc_select_0) | 同上 + 搜索/列表字段 |
|
||||
|
||||
**核心结论**:
|
||||
- ✅ 浏览器渲染字段 ⊇ 源码层字段 ⊇ API 字段 (子集链成立)
|
||||
- ✅ auto convention (`comInputField*`, `billRuleField*`, `dateField*`, `selectField*`) 端到端一致
|
||||
- ✅ 命名规范从 baseline → dacli 重建 → 浏览器渲染 完整传递
|
||||
|
||||
### 三层一致性证明 (TC-A → TC-C → TC-B)
|
||||
|
||||
```
|
||||
baseline (workSystem 真实示例) # 命名规范: auto
|
||||
↓ dacli --ai 重建 (BS-drift-1 修复后)
|
||||
dacli test render (TC-C) # 渲染字段: 9 字段, auto convention ✓
|
||||
↓ 浏览器真实访问
|
||||
playwright 截图 (TC-B) # inputIds: 12 字段, auto convention + 搜索 ✓
|
||||
```
|
||||
|
||||
**Round 2 全闭环**: 9/9 form TC-C PASS + 1/1 form TC-B PASS + 21/21 vitest PASS
|
||||
Reference in new issue
Block a user