Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/mode-home-no-caveat-footer.test.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -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"]);
}
});
});
10 changes: 5 additions & 5 deletions tests/shared-home-empty-state.dom.test.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -85,7 +85,7 @@ const expectedPresentations = [
},
{
modeId: "therapy-compass",
title: "Therapy Compass",
title: "Therapy",
subtitle: "Source-grounded therapy records.",
iconClass: "lucide-compass",
},
Expand DownExpand Up@@ -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"]);
},
);

Expand Down