diff --git a/tests/mode-home-no-caveat-footer.test.ts b/tests/mode-home-no-caveat-footer.test.ts index 7b000b8195..3d70746ad0 100644 --- a/tests/mode-home-no-caveat-footer.test.ts +++ b/tests/mode-home-no-caveat-footer.test.ts @@ -85,9 +85,10 @@ describe("mode homes carry no caveat footer", () => { it("leaves no caveat copy in the shared-home presentation table", () => { // The copy route into the same defect: a mode could carry the line as data - // rather than as a component. Every entry is exactly a title and a subtitle. + // rather than as a component. The table now also carries starter + // suggestions, but it must not grow any caveat/footer field. for (const modeId of appModeIds) { - expect(Object.keys(sharedHomePresentation[modeId]).sort(), modeId).toEqual(["subtitle", "title"]); + expect(Object.keys(sharedHomePresentation[modeId]).sort(), modeId).toEqual(["subtitle", "suggestions", "title"]); } }); }); diff --git a/tests/shared-home-empty-state.dom.test.tsx b/tests/shared-home-empty-state.dom.test.tsx index ad68c54ec2..210aa01e6a 100644 --- a/tests/shared-home-empty-state.dom.test.tsx +++ b/tests/shared-home-empty-state.dom.test.tsx @@ -85,7 +85,7 @@ const expectedPresentations = [ }, { modeId: "therapy-compass", - title: "Therapy Compass", + title: "Therapy", subtitle: "Source-grounded therapy records.", iconClass: "lucide-compass", }, @@ -129,11 +129,11 @@ describe("SharedHomeEmptyState", () => { expect(icon).toHaveClass(iconClass); expect(icon).toHaveAttribute("aria-hidden", "true"); - // No mode home carries a caveat line under the composer any more, and no - // mode may reintroduce one as filler: the presentation table is exactly a - // title and a subtitle. + // No mode home carries a caveat line under the composer any more. The + // shared-home table now also feeds mode-specific starter suggestions, so + // the contract is title + subtitle + suggestions — and nothing else. const presentation: SharedHomePresentation = sharedHomePresentation[modeId]; - expect(Object.keys(presentation).sort()).toEqual(["subtitle", "title"]); + expect(Object.keys(presentation).sort()).toEqual(["subtitle", "suggestions", "title"]); }, );