Skip to content

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

fix(tests): update test imports to match renamed source panel

Steven Enamakela19bf9d41975
diff --git a/app/src/features/conversations/components/__tests__/AgentProcessSourcePanel.test.tsx b/app/src/features/conversations/components/__tests__/AgentProcessSourcePanel.test.tsx
index 03bc1e3809..9208cd39f5 100644
--- a/app/src/features/conversations/components/__tests__/AgentProcessSourcePanel.test.tsx
+++ b/app/src/features/conversations/components/__tests__/AgentProcessSourcePanel.test.tsx
@@ -102,10 +102,10 @@ describe('AgentProcessSourcePanel', () => {
/>
);
const panel = screen.getByTestId('agent-process-source-panel');
- const allDetails = panel.querySelectorAll('details');
- // Every <details> (the group + each expandable row) is open.
- expect(allDetails.length).toBeGreaterThan(1);
- allDetails.forEach(d => expect(d.hasAttribute('open')).toBe(true));
+ const disclosures = panel.querySelectorAll('[data-slot="collapsible"]');
+ // Every disclosure (the group + each expandable row) reports itself open.
+ expect(disclosures.length).toBeGreaterThan(1);
+ disclosures.forEach(d => expect(d.getAttribute('data-state')).toBe('open'));
});
it('never shows the "view full processing" affordance (the panel IS that view)', () => {
diff --git a/app/src/features/conversations/timeline/ConversationTimeline.test.tsx b/app/src/features/conversations/timeline/ConversationTimeline.test.tsx
index 6a5df28779..0b1425740b 100644
--- a/app/src/features/conversations/timeline/ConversationTimeline.test.tsx
+++ b/app/src/features/conversations/timeline/ConversationTimeline.test.tsx
@@ -77,8 +77,8 @@ describe('ConversationTimeline', () => {
});
const { container } = renderInStore(<ConversationTimeline items={items} />);
// The two consecutive tool items coalesce into one ToolTimelineBlock (one
- // `<details>` group), not two separate blocks.
- expect(container.querySelectorAll('details')).toHaveLength(1);
+ // "Agentic task insights" disclosure group), not two separate blocks.
+ expect(container.querySelectorAll('[data-testid="agent-task-insights"]')).toHaveLength(1);
});
it('invokes onOpenSubagent when a subagent row requests the drawer', () => {