zhangxiang
acb6b67357
feat(brand): 首页影像版式与名+号字标上线
...
- 首页按咨询机构影像版式重排,保留原站文案与“洞察→行业→能力”段序
- 导航/页脚/品牌页换用上下锁定字标,alt 维持法定主体名
- 修复 reduce 下 PageTransition 祖先 opacity 停留导致的白屏
- 4 浏览器 × 9 宽度多端复核,axe 0 violation
- 视觉基线 106 张更新并只读复跑 125/125
2026-10-20 11:09:32 +08:00
zhangxiang
1e80167b7c
fix(a11y,e2e): 修 §14 定性出的 6 类功能 E2E 红,含一条 fail-open 与一处我自己造成的重复键
...
产品侧(真缺陷):
- detail-trust-section 渲染绕过门槛(publishableCases 算了却仍 map caseStudies)⇒
只要一条过闸,未授权/无 verified 的案例照样上线。改回 publishableCases.map,
新增 detail-trust-gate.test.tsx 3 例;变异验证:回退成 caseStudies.map ⇒ 2 条精确转红。
- 4 个文字链接触摸目标 23px < WCAG 2.5.8 的 24px(home 全部洞察/了解这一能力、
成果槽两条 CTA)⇒ 走间距刻度 min-h-6 补齐,不塞任意值。判据本身复跑通过。
- 首页能力面板 role=region 缺可访问名(landmark 无名;axe 的 landmark-name 属
best-practice 标签,我们的闸只跑 A/AA 所以没报)⇒ 补 aria-label。
- 登录限流额度改为可按环境覆盖(默认仍 10 次/15 分钟/IP,生产姿态不变);
真因:进程内内存桶 + dev server 跨整轮存活 ⇒ @admin 旅程第 11 次登录起必得 429,
即 §14 里「单跑绿、全量红」的机理。route.test.ts 加双向用例(未设=10;设 3 ⇒ 第 4 次限流)。
测试侧(锚点/引擎):
- mobile.spec:45、website-acceptance:139 的重锚:锚点取自真源 navigation.ts
(一级只剩 行业/能力/洞察/关于我们,联系入口是 consult-button 而非导航项)。
- p4:403 焦点管理:webkit/chromium-mobile 上 Tab 不落到链接(Safari 系需系统级
「Press Tab to highlight each item」,Playwright 起的 webkit 不带),
我先试 bringToFront + 点空白**没有用**,故改为同契约按引擎取证(chromium 走真实键盘
Tab,其余显式 focus 跳转链接),断言一条不减;复跑 webkit+mobile 2 passed。
- playwright.config.ts:我把 env 插成了重复键(TS1117),由本批新加的 type-check:e2e 当场抓到
——这条闸的价值的又一次现场证明。已合并进既有 env 对象。
待办:全量功能 E2E 终跑(4 project)正在后台,读数与 PR 勾选项的复位随下一笔。
2026-10-17 10:41:57 +08:00
zhangxiang
46d39acf3f
chore(visual): visual-webkit-desktop 基线随对标语法批重采(AUTH-VISUAL)
...
§11.6 只读比对给出本 project 的像素不符项,全部来自本批语法改动的外溢
(radius 收进 0-4px、CTA/badge 直角档 --radius-cta:0、彩色阴影退役、
hover 去抬升、暖色板、字标落库后的 header/footer),0 例选择器死、0 例超时。
重采后只读复跑 125 passed / 0 failed;负对照 --radius-cta=12px 使基线判红。
逐张人工读图追认:本 project 抽样核对,全量待决策人分批追认(登记在 PR 未验证项)。
2026-10-17 08:25:10 +08:00
zhangxiang
2e7bcf01da
chore(visual): webkit-desktop 基线随字标落库重写
...
按 --update-snapshots=changed 重写;逐张过 check-baseline-shift.cjs(平移感知判据)分类,
末态在只读复跑 --update-snapshots=none 下 125 passed / 0 failed / 0 重写。
2026-10-16 19:23:20 +08:00
zhangxiang
6bb7c557ee
test(qa): e2e 装配修正 + 集成/门禁测试与工具链重构
...
- e2e:修死选择器与蜜罐误命中、补断言、GA4/security-headers 用例诚实标注
skip 边界;新增 assert-helpers/fixtures/hydrated/primary-nav/touch-targets
等复用桩。
- 集成层:config/test/jest.integration.config.js + tests-integration/ 真库
一次性 SQLite 用例,teardown 守卫开发库指纹。
- 门禁工具链:jest.setup 归位到根、scripts/accessibility 全站 axe 节点计数、
check-brand-text-token/check-motion-constraints 机械守卫、stryker/lighthouse
配置收敛。
2026-09-28 10:48:08 +08:00
zhangxiang
040951c0a3
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:50:58 +08:00
zhangxiang
2ff573e935
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-20 11:50:58 +08:00
zhangxiang
7df2dde438
chore(visual): refresh tablet/mobile/webkit baselines for Hero redesign
...
- Regenerate 23 tablet + 23 mobile + 23 webkit visual baselines via
playwright --update-snapshots against current HEAD (Hero redesign:
light Hero + ink engineering grid + reduced-motion guard + P5 CTA).
- Firefox baseline remains blocked by sandbox IPC (browserContext.newPage
timeout) and is excluded; requires a real-Firefox CI host.
2026-09-01 12:23:04 +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
a2ffd6f27b
test(acceptance): complete release acceptance testing — conditional pass
...
All 7 phases of release acceptance testing completed:
- Static quality gates: build, type-check, lint, unit-coverage all passed
- Regression: 356 E2E passed (Chromium core features), CMS workflow, user journeys
- Visual regression: 84/84 passed across 5 browser/device projects (baselines updated)
- Mobile: 173 passed, FCP 68ms / LCP 280ms
- Lighthouse: 7 pages, 4 categories ≥ 0.9, CWV compliant
- Load test: 200 concurrent, p95=7.26ms, 0.28% error rate
- Stress test: 300 concurrent, p95=3.95ms, 0% error rate
- Accessibility: contrast 7/7, headings 10/10, a11y 66/66
- Security: 2 moderate vulnerabilities (accepted risk)
- docs/lessons-learned.md: added 3 new entries (5.7-5.9)
Conclusion: conditional pass — Firefox (127 failed) and mobile (37 failed)
compatibility issues documented as known defects.
2026-08-13 07:11:12 +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