Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Expect the main thread item in the panel's thread menu

luishron123586bd9df2d87
diff --git a/src/components/bot-panel/Conversations.dom.test.ts b/src/components/bot-panel/Conversations.dom.test.ts
index 3d5ef50715..582f6ec074 100644
--- a/src/components/bot-panel/Conversations.dom.test.ts
+++ b/src/components/bot-panel/Conversations.dom.test.ts
@@ -298,7 +298,7 @@ describe("a bot's conversations in its panel", () => {
return [...document.querySelector(`[data-thread-overlay][aria-label="Actions for ${title}"]`)!.querySelectorAll("button")];
};
const items = menuFor("Translate the launch post");
- expect(items.map((button) => button.textContent)).toEqual(["Rename thread", "Memory", "Pin", "Archive", "Delete thread"]);
+ expect(items.map((button) => button.textContent)).toEqual(["Rename thread", "Memory", "Pin", "Set as main thread", "Archive", "Delete thread"]);
click(items.find((button) => button.textContent === "Pin")!);
expect(fixture.dispatch.mock.calls).toEqual([[{ type: "updateTask", botId: "research", threadId: "launch", patch: { pinned: true } }]]);
fixture.dispatch.mockReset();