Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

test(vscode): await the summary-failure empty state in the home sidebar test (#766)

Swati Ahujaf1f7e16f0ca1
diff --git a/packages/vscode/webview/src/views/home/App.test.tsx b/packages/vscode/webview/src/views/home/App.test.tsx
index df5a8f35d..cb97ea9ae 100644
--- a/packages/vscode/webview/src/views/home/App.test.tsx
+++ b/packages/vscode/webview/src/views/home/App.test.tsx
@@ -142,6 +142,9 @@ describe("Home sidebar", () => {
expect(await screen.findByText("Knowledge Graph")).toBeTruthy();
expect(screen.getByText("Server-ranked refactoring opportunities")).toBeTruthy();
- expect(screen.getByText(/No health data yet/)).toBeTruthy();
+ // findByText, not getByText: the launcher renders before the summary
+ // promise rejection flushes, so on a slow runner the hero card can still
+ // be in its loading skeleton when the launcher assertions pass.
+ expect(await screen.findByText(/No health data yet/)).toBeTruthy();
});
});