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(web): align fix-first-section scope and exclusions assertions (#3339)

Abhinav Mauryadd1abd92d755
diff --git a/packages/web/src/components/code-health/fix-first-section.test.tsx b/packages/web/src/components/code-health/fix-first-section.test.tsx
index c9c2d7601..b4118bcbf 100644
--- a/packages/web/src/components/code-health/fix-first-section.test.tsx
+++ b/packages/web/src/components/code-health/fix-first-section.test.tsx
@@ -121,7 +121,8 @@ describe("FixFirstSection", () => {
it("asks for the production queue first, and the whole one when tests are included", async () => {
getFixFirst.mockResolvedValue(queue([item({})]));
renderSection();
- expect(await screen.findByText(/1 of 4 eligible items\. Excluded: 3 in tests/)).toBeTruthy();
+ expect(await screen.findByText("1 of 4 eligible items.")).toBeTruthy();
+ expect(screen.getByRole("button", { name: "6 excluded" })).toBeTruthy();
expect(getFixFirst).toHaveBeenCalledWith("r1", { limit: 10, scope: "production" });
fireEvent.click(screen.getByLabelText("Include tests"));
await waitFor(() => expect(getFixFirst).toHaveBeenCalledWith("r1", { limit: 10, scope: "all" }));