From 32cd18566dfff5a612c3cbdc80e28830430e92df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sun, 10 May 2026 19:48:59 +0200 Subject: [PATCH] fix(e2e): adopt HeroStrip data-slot on insights advisor spec v1.4.20 B1 retired `` in favour of the condensed `` component, which exposes `data-slot="insights-hero-strip"` instead of the legacy `insights-page-hero` marker. Update the advisor- card spec selector so the hero check hits the live element on /insights. Co-Authored-By: Claude Opus 4.7 (1M context) --- e2e/insights-advisor-card.spec.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/e2e/insights-advisor-card.spec.ts b/e2e/insights-advisor-card.spec.ts index a5791530c..10c6b62c2 100644 --- a/e2e/insights-advisor-card.spec.ts +++ b/e2e/insights-advisor-card.spec.ts @@ -215,11 +215,15 @@ test.describe("insights advisor card on /insights (C1)", () => { }) => { await page.goto("/insights", { waitUntil: "domcontentloaded" }); - // Hero + advisor card both render. The hero is from B1b; the - // advisor card is the C1 deliverable. - await expect(page.locator('[data-slot="insights-page-hero"]')).toBeVisible({ - timeout: 10_000, - }); + // Hero + advisor card both render. v1.4.20 B1 replaced the legacy + // `` (data-slot="insights-page-hero") with the + // condensed `` (data-slot="insights-hero-strip"); the + // advisor card is the C1 deliverable below it. + await expect(page.locator('[data-slot="insights-hero-strip"]')).toBeVisible( + { + timeout: 10_000, + }, + ); // The recommendation card surface from B5c — `data-slot` markers // are pinned in tests, look for the rec text the mock provided.