Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(test): update ChatSources test to match new source format

Steven Enamakel664652a99874
diff --git a/app/src/features/conversations/components/aui/ChatSources.test.tsx b/app/src/features/conversations/components/aui/ChatSources.test.tsx
index 37fa1a83b4..6afba51f14 100644
--- a/app/src/features/conversations/components/aui/ChatSources.test.tsx
+++ b/app/src/features/conversations/components/aui/ChatSources.test.tsx
@@ -180,7 +180,9 @@ describe('inline turn sources', () => {
renderChat();
await waitFor(() => expect(screen.getByTestId('turn-sources')).toBeTruthy());
- expect(document.querySelectorAll('[data-testid="assistant-ui-tool-call"]')).toHaveLength(1);
+ // One activity disclosure (reasoning + tools, collapsed once settled) and
+ // nothing summarising it a second time under the answer.
+ expect(document.querySelectorAll('[data-slot="tool-group-root"]')).toHaveLength(1);
expect(document.querySelector('[data-testid="turn-process-footer"]')).toBeNull();
expect(screen.queryByText(/\d+ steps? ·/)).toBeNull();
});