Files
novalon-website/docs/acceptance/2026-10-26-footer-icon-align/visual-runs.txt
T
zhangxiang a63cf38c62 fix(footer): 联系我们图标与首行文字同中线
旧写法用固定 mt-0.5 给图标手拍偏移,而本项目 --line-height-relaxed 是 1.85(非 Tailwind
默认 1.625),根字号又有 16/17/18 三档 ⇒ 图标中心比文字行盒中心高 3.319/3.134/2.950px
(地址行)与 3.313/3.133/2.945px(邮箱行)。

改为结构对齐:地址行图标包进高 = 行盒高(--line-height-relaxed × --font-size-sm)的
items-center 单元格,换行后仍对齐首行;邮箱行是单行链接,整行 items-center。
行高/字号/页高零变化,只移动两个图标。
2026-10-26 10:43:57 +08:00

28 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 视觉回归三轮读数(2026-10-26)
命令统一为:`E2E_BASE_URL=http://localhost:3001 npm run test:visual:all -- --update-snapshots=none`
(端口 3000 被本机 auth-center 容器占着,Playwright 对 401 也判"服务已就绪",会静默复用,故绕到 3001)
## 1. 重采前(工作树口径:35 路由,含另一批未提交的 20 路由扩容)
`/tmp/visual-before.log` → **137 failed / 88 passed(225 例,15.1m)**
- 分项目失败数:chromium-desktop 14、chromium-tablet 35、chromium-mobile 35、
firefox-desktop 18、webkit-desktop 35
- 其中 5 张 `footer-section` 与 5 张 `theme-*-main` 也在红集里(主题图取 `main`,
而 `main` 包住页脚:`client-layout.tsx:15` 在根布局包住整个营销布局,`footer` 在 `<main>` 内)
- 桌面 chromium 35 张全页图里 **21 绿 / 14 红** —— 3px 图标位移对 `maxDiffPixels: 200`
是"刚好越线",像素门限不能替几何判据兜底
## 2. 重采后(同上口径)
`/tmp/visual-after.log` → **225 passed / 0 failed(9.9m)**
## 3. PR 口径(HEAD 的视觉清单:15 路由;把 `e2e/visual-regression.spec.ts` 临时换回 HEAD 版本)
`/tmp/visual-prstate.log` → **125 passed / 0 failed(6.0m)**
- 运行前把工作树版本备份到 `/tmp/visual-spec-wt.ts`(sha256 `cd266b11…`),跑完按原样还原并校验 sha256
- HEAD 清单 15 路由 × 5 project = 75 张全页图,与已入库的 75 张 tracked 全页基线一一对应;
工作树里那 100 张未入库基线属于未提交的 20 路由扩容,不在本批入库范围