feat(motion): 动效层三件——背景辉光/入场/心跳,页脚撤双入口
- 背景鼠标辉光:ink 色 4% 径向渐变跟随(pointer:fine×非
reduced-motion 才有 JS,raf 节流 document 级监听 VT 存活)——
丙灰阶语言的"活背景",触屏/减动效自动隐藏
- 正文入场 rise-in 12px/0.4s(VT 换页自然重放)+ 列表行悬停
1px 微浮;全量 prefers-reduced-motion 豁免
- 首页"最近心跳":构建期拉 blog 仓最新 commit(gitea API 8s 超时
静默降级),脉冲点+相对时长——本站自己的脉搏
- 页脚撤「装备/制作」入口(页面保留,用户决策:只删入口)
- E2E 加固:g-chords 修好后 location.href 与 goto 竞态(en 页弦
导航迟到提交打断 goto)——中断重试模式
- 过程教训:str.replace 静默无操作再犯(锚点瞄错组件文件)——
脚本未进产物却报"全落地",replace 必须 assert 配对 grep 产物
验证: --mx 鼠标双跳 15.6% 实测跟随;E2E 31/31 PASS(竞态重试后
确定性);构建 34 页 exit 0
Spec: none (动效层+页脚撤口+测试加固,车道级交付)
Co-authored-by: GLM-5.3
This commit is contained in:
1 parent
0b6524f53c
commit
363cc616f7
6 files changed
+110
-5
No files matched your search
+6
-1
@@ -103,7 +103,12 @@ await page.waitForLoadState('networkidle');
|
||||
ok('g-chords 导航到图库', page.url().includes('/gallery'));
|
||||
|
||||
// 6) 图库:网格可见(灯箱不再自动打开)+ 灯箱交互
|
||||
await page.goto(BASE + '/gallery/', { waitUntil: 'networkidle' });
|
||||
// g-chords 的 location.href 与 goto 竞态(修好的弦导航在 en 页跳 /en/gallery/,
|
||||
// 迟到提交会打断 goto)——中断重试一次
|
||||
for (let i = 0; ; i++) {
|
||||
try { await page.goto(BASE + '/gallery/', { waitUntil: 'networkidle' }); break; }
|
||||
catch (e) { if (i >= 1) throw e; await page.waitForTimeout(400); }
|
||||
}
|
||||
ok('图库·灯箱默认关闭', await page.locator('#lb[open]').count() === 0);
|
||||
ok('图库·网格照片可见', (await page.locator('.wall .shot img:visible').count()) >= 15, `${await page.locator('.wall .shot img:visible').count()} 张`);
|
||||
// fullPage 截图不必然触发视口外懒加载:先整页滚动一圈再截(视觉复核 19/21 教训)
|
||||
|
||||
Reference in new issue
Block a user