From d35c7660ea4c7002c07df75af10b137d798eec0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Fri, 19 Jun 2026 19:52:21 +0200 Subject: [PATCH] test(insights): assert the overview no longer wires the inline ask-Coach affordance Wave A removed the inline ask-the-Coach / suggested-questions block from the overview hero (Coach is reached via the FAB + drawer). Update the stale assertion that still expected onAskCoach/onPickPrompt + the launch context on the page. --- src/app/__tests__/insights-polish.test.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/__tests__/insights-polish.test.ts b/src/app/__tests__/insights-polish.test.ts index ab59ec3a6..1029c31af 100644 --- a/src/app/__tests__/insights-polish.test.ts +++ b/src/app/__tests__/insights-polish.test.ts @@ -86,15 +86,15 @@ describe("v1.4.27 R3d MB4 — the layout mounts the Coach drawer", () => { expect(layout).toContain("LayoutCoachFab"); }); - it("hero strip's onAskCoach handler calls the launch context", () => { + it("the overview no longer wires the inline ask-the-Coach affordance", () => { const src = load(INSIGHTS_PATH); - // The hero supplies onAskCoach which now delegates to - // `coachLaunch.askCoach(prefill)` from the layout-level provider - // instead of toggling local state. - expect(src).toMatch(/ {