fix(test): follow the home split in source contracts and expose element colors
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:
+1
-1
@@ -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
|
||||
- 复发自:无
|
||||
|
||||
Reference in New Issue
Block a user