Skip to content

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

fix(aui): correct tool timeline adapter test for restored block

Steven Enamakel3474115b67b6
diff --git a/app/src/features/conversations/aui/ToolTimelineAdapter.test.tsx b/app/src/features/conversations/aui/ToolTimelineAdapter.test.tsx
index ef5406143a..8fc45180ea 100644
--- a/app/src/features/conversations/aui/ToolTimelineAdapter.test.tsx
+++ b/app/src/features/conversations/aui/ToolTimelineAdapter.test.tsx
@@ -113,7 +113,7 @@ describe('ToolTimelineAdapter — agentic task insights surface', () => {
const { rerender } = render(<ToolTimelineAdapter entries={subagentARunning} turnActive />);
expect(screen.getByTestId('agent-task-insights')).toHaveAttribute('data-state', 'open');
- fireEvent.click(screen.getByText('Agentic task insights'));
+ fireEvent.click(screen.getByRole('button', { name: 'Agentic task insights' }));
expect(screen.getByTestId('agent-task-insights')).toHaveAttribute('data-state', 'closed');
const subagentBRunning: ToolTimelineEntry[] = [