Skip to content

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

fix(test): replace text matcher with accessible role query

Steven Enamakel81fe6142fb8f
diff --git a/app/src/features/conversations/aui/ToolTimelineAdapter.test.tsx b/app/src/features/conversations/aui/ToolTimelineAdapter.test.tsx
index 9ffb8088fc..ef5406143a 100644
--- a/app/src/features/conversations/aui/ToolTimelineAdapter.test.tsx
+++ b/app/src/features/conversations/aui/ToolTimelineAdapter.test.tsx
@@ -88,7 +88,7 @@ describe('ToolTimelineAdapter — agentic task insights surface', () => {
const { rerender } = render(<ToolTimelineAdapter entries={turn1Settled} />);
expect(screen.getByTestId('agent-task-insights')).toHaveAttribute('data-state', 'closed');
- 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', 'open');
const turn2Running: ToolTimelineEntry[] = [