Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
test(desktop): wait for the held docs search in the workspace-switch test (#10979)
Bohan Jiang52e95707232d
diff --git a/apps/desktop/src/renderer/src/components/desktop-layout.search-workspace.test.tsx b/apps/desktop/src/renderer/src/components/desktop-layout.search-workspace.test.tsxindex 033ad31c7a..e772a7ca4c 100644--- a/apps/desktop/src/renderer/src/components/desktop-layout.search-workspace.test.tsx+++ b/apps/desktop/src/renderer/src/components/desktop-layout.search-workspace.test.tsx@@ -212,9 +212,9 @@ it("cancels an in-flight search when the production router switches workspace",await openSearch();holdA = true;fireEvent.change(input(), { target: { value: "alpha" } });- // Issues and projects: one held search request each. Docs search stays off- // because the fixture config leaves docs_v1 disabled.- await waitFor(() => expect(held.length).toBe(2), NETWORK_WAIT);+ // Issues, projects and docs: one held search request each. Docs search runs+ // on its own debounce, so waiting for only the first two raced its arrival.+ await waitFor(() => expect(held.length).toBe(3), NETWORK_WAIT);await notify("synthetic-b");await act(async () => {for (const { response, payload } of held.splice(0)) response.end(JSON.stringify(payload));