Commit Graph
6 Commits
Author SHA1 Message Date
zhangxiang f543e478e3 test(visual): 以规范模式重生成全站视觉基线并补齐 firefox 缺口
改动前全量视觉套件 115 例中 87 例失败,且失败均为尺寸级不匹配(非像素抖动),
在 dev(:3001) 与 prod(:3002) 两种模式下同样失败。根因:e2e/playwright.config.ts
的 webServer 为 `npm run dev` + reuseExistingServer + url :3000,历史
`test:visual:update` 会静默打在 :3000 的旧生产预览上,跨浏览器基线长期失同步
(同一 / 页 firefox 基线高 6400px vs chromium 10936px)。

按配置意图以 dev 模式在新起 :3001(未复用 :3000)重生成 86 张,并补齐此前缺失的
methodology-fullpage-visual-firefox-desktop.png。逐张比对新旧像素高度,增量均为
本分支自身的收敛型缩减(最大 -15%,无归零/空白帧)。

Gates: 二次全量复跑 115 passed(5 projects × 23 subjects)。
2026-09-20 11:32:23 +08:00
zhangxiang c9df2e40c5 test(visual): 更新视觉回归基线(对齐 300ms 入场动效)
跟随 8fb5aae perf(motion) 的全页渲染变化重新生成基线:

- 更新 60 张快照:chromium-desktop 10 / tablet 17 / mobile 16 / webkit 17
- 校验:chromium 三档 + webkit 共 92 用例全绿(不带 -u 复跑,EXIT=0)
- firefox-desktop 23 用例在本环境无法执行(沙箱拦截其 newPage IPC),
  对应 23 张基线仍是旧版,需在 CI 或无该限制的环境重新生成
2026-09-03 17:41:15 +08:00
zhangxiang 2482967a22 chore(visual): refresh tablet/mobile/webkit visual baselines
Regenerate snapshots for 3 projects under reducedMotion so ScrollReveal renders

default-visible (no opacity:0 initial state). Firefox baselines untouched:

browser launch times out in this sandbox (pre-existing env limitation, not code).
2026-09-01 11:07:30 +08:00
zhangxiang 2653a3730c fix(regression): resolve dogfood findings across marketing, auth, e2e and docs
- Fix list-to-detail navigation on product/service/solution/case pages
- Fix soft 404 on service detail by removing (marketing)/loading.tsx and using force-dynamic
- Fix contact form submission feedback and news placeholder image handling
- Unify SSR/client authentication state in auth.ts
- Add "新闻动态" to main navigation
- Fix Playwright storageState path and Firefox footer link flakiness
- Add E2E coverage for nav dropdown, cases filter and auth token parsing
- Update visual regression baselines (desktop/tablet/mobile, chromium/webkit/firefox)
- Update README, lessons-learned and add REGRESSION_REPORT_2026-07-27.md
- Ignore .lighthouseci/ and heading-hierarchy-report.json
2026-07-27 07:39:11 +08:00
张翔 e35090b914 test(visual): update Playwright visual regression baseline snapshots
更新桌面端、平板、移动端及 firefox/webkit 多浏览器的视觉回归基线,
反映近期首页、产品、服务、方案、案例、联系页等 UI 调整后的最新渲染效果。
2026-07-25 08:03:40 +08:00
张翔 cdeb34d60c test(visual): commit baseline snapshots for regression testing
- Remove e2e/visual-snapshots/ from .gitignore so baselines are tracked
- Generate baseline screenshots across desktop/tablet/mobile and chromium/firefox/webkit
- Total: 95 snapshots (~114MB) covering 12 pages and component states

NOTE: Consider migrating to Git LFS if snapshot history grows too large.
2026-07-08 15:53:05 +08:00