Skip to content

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

test(agent-running-status): add test file for AgentRunningStatus component

Steven Enamakel261d3302730a
diff --git a/app/src/features/conversations/aui/AgentRunningStatus.test.tsx b/app/src/features/conversations/aui/AgentRunningStatus.test.tsx
new file mode 100644
index 0000000000..ffa498b3ea
--- /dev/null
+++ b/app/src/features/conversations/aui/AgentRunningStatus.test.tsx
@@ -0,0 +1,18 @@
+import { render, screen } from '@testing-library/react';
+import { describe, expect, it } from 'vitest';
+
+import { AssistantUiRuntimeProvider } from '../../../providers/AssistantUiRuntimeProvider';
+import { AgentRunningStatus } from './AgentRunningStatus';
+
+describe('AgentRunningStatus', () => {
+ it('falls back to the thinking indicator when assistant-ui has no tasks', () => {
+ render(
+ <AssistantUiRuntimeProvider>
+ <AgentRunningStatus />
+ </AssistantUiRuntimeProvider>
+ );
+
+ expect(screen.getByTestId('agent-running-status-thinking')).toBeInTheDocument();
+ expect(screen.queryByTestId('agent-running-status-tasks')).not.toBeInTheDocument();
+ });
+});