fix(e2e): remove stale hero-product-visual assertions from uj-11

v15 removed the product mockup; assert hero-section visibility instead. 7/7 pass chromium.

docs: add impeccable AI-slop audit for Hero + FounderQuoteSection (18/20, no tells).
This commit is contained in:
2026-09-01 11:07:45 +08:00
parent 2482967a22
commit 5de01531bf
2 changed files with 105 additions and 14 deletions
+6 -14
View File
@@ -42,17 +42,9 @@ test.describe('UJ-11a: 首屏说服链路(Hero → 信任 → 叙事 → CTA
await page.waitForTimeout(2500);
await closeCookieBanner(page);
// === L1 Hero产品视觉 Mockup 可见(设计优化核心交付) ===
const productVisual = page.locator('[data-testid="hero-product-visual"]').first();
await expect(productVisual).toBeVisible({ timeout: 15000 });
// 诚实标签「产品界面示意」「示例数据」存在(零编造原则)
const visualText = await productVisual.textContent();
expect(visualText).toContain('产品界面示意');
expect(visualText).toContain('示例数据');
// 产品视觉含可识别产品模块命名
expect(visualText).toContain('经营驾驶舱');
// === L1 Hero浅色工程网格 Hero 可见(v15 已移除产品 Mockup,改为声明先行 + 单一 CTA)===
const heroSection = page.locator('[data-testid="hero-section"]').first();
await expect(heroSection).toBeVisible({ timeout: 15000 });
// === 单一主 CTA ===
const primaryCta = page.locator('[data-testid="hero-primary-cta"]').first();
@@ -167,9 +159,9 @@ test.describe('UJ-11c: 移动端首屏转化旅程', () => {
const primaryCta = page.locator('[data-testid="hero-primary-cta"]').first();
await expect(primaryCta).toBeVisible({ timeout: 15000 });
// 产品视觉渲染正常
const productVisual = page.locator('[data-testid="hero-product-visual"]').first();
await expect(productVisual).toBeVisible();
// 首屏 Hero 区块可见(v15 已移除产品 Mockup)
const heroSection = page.locator('[data-testid="hero-section"]').first();
await expect(heroSection).toBeVisible();
});
test('@mobile @journey @critical 移动端信任层与叙事区单列堆叠无溢出', async ({ page }) => {