feat(brand): 首页影像版式与名+号字标上线
- 首页按咨询机构影像版式重排,保留原站文案与“洞察→行业→能力”段序 - 导航/页脚/品牌页换用上下锁定字标,alt 维持法定主体名 - 修复 reduce 下 PageTransition 祖先 opacity 停留导致的白屏 - 4 浏览器 × 9 宽度多端复核,axe 0 violation - 视觉基线 106 张更新并只读复跑 125/125
This commit is contained in:
1 parent
f6e750c318
commit
acb6b67357
153 files changed
+1313
-178
No files matched your search
@@ -53,6 +53,21 @@ async function expectNoHorizontalOverflow(page: Page) {
|
||||
async function gotoHome(page: Page) {
|
||||
await page.goto('/', { waitUntil: 'domcontentloaded', timeout: 30000 });
|
||||
await page.waitForTimeout(2500);
|
||||
// PageTransition 在 hydration 后把内容移进 motion.div;移入瞬间整棵子树会重挂。
|
||||
// 过早 scrollIntoView 会撞 "Element is not attached to the DOM"(2026-10-20 WebKit 实测)。
|
||||
// 等这一层的 opacity 归 1 再开始抓元素,不改变任何产品断言。
|
||||
await page
|
||||
.waitForFunction(
|
||||
() => {
|
||||
const wrappers = [...document.querySelectorAll('main div')].filter((el) => {
|
||||
const r = el.getBoundingClientRect();
|
||||
return r.height > 2000 && (el.getAttribute('style') || '').includes('opacity');
|
||||
});
|
||||
return wrappers.every((el) => parseFloat(getComputedStyle(el).opacity) > 0.99);
|
||||
},
|
||||
{ timeout: 12000 },
|
||||
)
|
||||
.catch(() => {});
|
||||
await closeCookieBanner(page);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user