refactor(home): 移除 Hero「数据驱动」产品视觉整个板块(非仅眉标)
- 删除 hero-product-visual 组件及其测试(该板块仅用于 Hero 右侧,移除后成死代码)。 - home-content-v15:移除 2 列网格的右侧列,Hero 收为单列文本 + 循环粒子层; 同步删除 HeroProductVisual 导入与过时 L3 注释("入场静止"→"持续循环漂移")。 - 删除 home-content-v15 中对已移除板块的测试断言。 注意(视觉回归):home 快照将因右侧板块消失而大幅变化,需在 CI/本地(npx playwright install chromium + npm run dev 后 npm run test) 跑 --update-snapshots 并 review 新基线。 验证:type-check ✅ / lint ✅(0 error) / 单测 ✅(129 套 1628 passed)。 视觉回归像素门禁:本沙箱未装 Playwright 浏览器,未实跑;且因板块移除快照 必然变更,需更新基线。
This commit is contained in:
@@ -126,11 +126,6 @@ describe('HomeContentV15 - 浅色 Hero(暗黑模式 token 友好)', () => {
|
||||
expect(screen.getByTestId('hero-stats')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('renders the abstract data-driven visual without product UI shell', () => {
|
||||
render(<HomeContentV15 />);
|
||||
|
||||
expect(screen.getByTestId('hero-product-visual')).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
describe('HomeContentV15 - 信任层与章节式叙事', () => {
|
||||
|
||||
Reference in New Issue
Block a user