fix(test): follow the home split in source contracts and expose element colors
Independent Staging Quality Gate / validate (push) Failing after 11m16s
Independent Staging Quality Gate / publish (push) Skipped

Gate 2888 failed ten frontend contracts after the onboarding shell and bootstrap moved out of page.tsx, and the western element colors were missing from @theme. The scans now follow the new files and still require the home page to mount them.
This commit is contained in:
jesse-ux
2026-09-25 03:32:36 +08:00
parent 81db05c6f0
commit 3dd48c0dc3
9 changed files with 44 additions and 10 deletions
+1 -1
View File
@@ -13756,7 +13756,7 @@
- 触发条件:首页拆分把引导屏 JSX 从 `page.tsx` 搬到 `home-onboarding-shell.tsx` 后推 staging。
- 根因:合同把 `<BirthTimeRectification` 锁在旧的首页文件清单里。拆分后组件还在,清单没跟上。
- 修复:扫描面加入 `home-onboarding-shell.tsx`,并要求 `page.tsx` 仍挂载 `<HomeOnboardingShell`。其余断言不放宽。
- 验证:`tests/test_birth_time_journey_contract.py::test_web_onboarding_uses_the_deterministic_free_journey`。
- 验证:Python 合同在 `81db05c6` 已过。run 2888 又露出 10 条前端源码合同:引导屏、恢复轮询、启动超时句、登录跳转搬出 `page.tsx` 后清单没跟上;西洋盘元素色没进 `@theme`。本提交把扫描面跟到新文件,并要求首页仍挂载这些模块;元素色补进 `@theme`。预览会话的墙钟只用于开发预览,标了既有豁免。
- 防复发:引导屏再搬家时,合同必须同时锁住挂载点和组件文件,不能只扫 `page.tsx`。
- 相关记录:TASK-home-page-split-20260925
- 复发自:无