Skip to content

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

test(steer-e2e): wait for the room's Bash chip before steering

Gökhan Köse5f715b116f16
diff --git a/server/steer-e2e.test.ts b/server/steer-e2e.test.ts
index bd660f28dc..6ab5a21e2d 100644
--- a/server/steer-e2e.test.ts
+++ b/server/steer-e2e.test.ts
@@ -993,7 +993,7 @@ posixOnly("mid-turn steering e2e", () => {
try {
expect((await api("POST", `/api/groups/${room.id}/messages`, { text: "start the room" })).status).toBe(202);
await waitFor(async () => (await getGroup())?.busyBotId === created.id, "the room turn to start");
- await waitFor(async () => (await getGroup())?.messages.some((m: any) => m.kind === "activity"), "the room tool chip");
+ await waitFor(async () => (await getGroup())?.messages.some((m: any) => m.kind === "activity" && m.tool?.name === "Bash"), "the room tool chip");
const attachments = join(home, ".openmausbot", "attachments");
mkdirSync(attachments, { recursive: true });