diff --git a/src/components/daily/__tests__/today-hero.test.tsx b/src/components/daily/__tests__/today-hero.test.tsx index f21a9ae03..4ca384a0b 100644 --- a/src/components/daily/__tests__/today-hero.test.tsx +++ b/src/components/daily/__tests__/today-hero.test.tsx @@ -175,6 +175,28 @@ describe("", () => { expect(html).toContain('data-slot="today-hero-lead"'); }); + it("promotes the top signal when score de-duplication removes the only lead", () => { + const html = render( + , + ); + + expect(html).toContain('data-slot="today-hero-lead"'); + expect(html).toContain("Pulse is settling lately"); + expect(html).not.toContain('data-slot="today-hero-signal"'); + }); + it("does not invent a score narrative while the digest is provisional", () => { const html = render( {/* Hero numeric face: the read leads large in the foreground token, calm and legible — the day's read, not a slogan. */} - {lead ? ( + {displayLead ? (
- +
) : null} {/* Top signal — present-tense headline + optional delta, one muted step down so it supports the lead without competing. */} - {topSignal ? ( + {topSignal && lead ? (