# 视觉回归三轮读数(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` 在 `
` 内) - 桌面 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 路由扩容,不在本批入库范围