diff --git a/clients/web/src/components/groups/HistoryEntry/HistoryEntry.test.tsx b/clients/web/src/components/groups/HistoryEntry/HistoryEntry.test.tsx
index e144e65d..2abbb6fa 100644
--- a/clients/web/src/components/groups/HistoryEntry/HistoryEntry.test.tsx
+++ b/clients/web/src/components/groups/HistoryEntry/HistoryEntry.test.tsx
@@ -280,6 +280,18 @@ describe("HistoryEntry", () => {
).toBeInTheDocument();
});
+ it("toggles the local expand/collapse state when clicking Expand/Collapse in the compact layout", async () => {
+ const user = userEvent.setup();
+ renderWithMantine(
+ ,
+ );
+ expect(screen.getByRole("button", { name: "Expand" })).toBeInTheDocument();
+ await user.click(screen.getByRole("button", { name: "Expand" }));
+ expect(
+ screen.getByRole("button", { name: "Collapse" }),
+ ).toBeInTheDocument();
+ });
+
it("starts expanded when isListExpanded is true and shows Parameters and Response", () => {
renderWithMantine(