Skip to content

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

Inbox filter test: read a row's title past the bot's picture

milind-soniacc378942f50
diff --git a/src/components/inbox/InboxPanel.dom.test.ts b/src/components/inbox/InboxPanel.dom.test.ts
index fa13d527e0..149badeddc 100644
--- a/src/components/inbox/InboxPanel.dom.test.ts
+++ b/src/components/inbox/InboxPanel.dom.test.ts
@@ -258,7 +258,7 @@ describe("the inbox's bot and status filters", () => {
id: "ben", name: "Ben", threadId: "ben-main",
tasks: Array.from({ length: 10 }, (_, index) => ({ threadId: `ben-${index}`, title: `Ben finished ${index}`, createdAt: 0, updatedAt: minutes(10 + index) })),
} as unknown as Bot;
- const titles = (section: string) => [...document.querySelectorAll<HTMLElement>(`[${section}] button[title]:not([data-inbox-pin])`)].map((row) => row.querySelector("span span")?.textContent ?? row.textContent);
+ const titles = (section: string) => [...document.querySelectorAll<HTMLElement>(`[${section}] button[title]:not([data-inbox-pin])`)].map((row) => row.querySelector("span.min-w-0 > span")?.textContent ?? row.textContent);
const choose = (selector: string, value: string) => act(async () => {
const select = document.querySelector<HTMLSelectElement>(selector)!;
select.value = value;