Skip to content

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

test: verify Call rerenders with a follow-up draft

Locksley Lennox87b07e80bda6
diff --git a/src/components/Composer.simple.test.ts b/src/components/Composer.simple.test.ts
index 3e4c60b650..e8a0b64a80 100644
--- a/src/components/Composer.simple.test.ts
+++ b/src/components/Composer.simple.test.ts
@@ -207,6 +207,7 @@ describe("the Simple composer in a bot chat", () => {
expect(fixture.dispatch).toHaveBeenCalledWith({ type: "interrupt", botId: "atlas", threadId: "atlas-thread" });
restoreComposerDraft(`bot:${bot.id}:${bot.threadId}`, { text: "and also this", attachments: [] });
+ fixture.call = null;
render({ bot: busy });
expect(container.querySelector('[data-composer-stop="beside"]')).not.toBeNull();
expect(container.querySelector('[data-composer-stop="slot"]')).toBeNull();