Skip to content

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

fix(test): update SubagentDrawer test to reflect new behavior

Steven Enamakel58e762e993df
diff --git a/app/src/features/conversations/components/__tests__/SubagentDrawer.test.tsx b/app/src/features/conversations/components/__tests__/SubagentDrawer.test.tsx
index db5327e961..9bcd783001 100644
--- a/app/src/features/conversations/components/__tests__/SubagentDrawer.test.tsx
+++ b/app/src/features/conversations/components/__tests__/SubagentDrawer.test.tsx
@@ -94,7 +94,10 @@ describe('SubagentDrawer', () => {
onClose={() => {}}
/>
);
- const failure = screen.getByTestId('processing-tool-failure');
+ // Rendered through the vendored `tool-error` element (`ToolFailureCard`)
+ // now that this drawer's failed child rows go through `AssistantUiToolCall`
+ // instead of the legacy `ToolFailureLines` text.
+ const failure = screen.getByTestId('assistant-ui-tool-failure');
expect(failure).toHaveTextContent('You declined this action.');
expect(failure).toHaveTextContent('Ask again if you change your mind.');
});