Skip to content

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

test(conversations): replace reasoning tier test with model selector check

Steven Enamakela972c4d5fd0a
diff --git a/app/src/pages/__tests__/Conversations.attachments.test.tsx b/app/src/pages/__tests__/Conversations.attachments.test.tsx
index daf6d90a2e..7141cab694 100644
--- a/app/src/pages/__tests__/Conversations.attachments.test.tsx
+++ b/app/src/pages/__tests__/Conversations.attachments.test.tsx
@@ -445,24 +445,9 @@ describe('Conversations — attachment feature', () => {
expect(mockSelectAgentProfile).not.toHaveBeenCalled();
});
- it('selects the Reasoning tier from the chat-header toggle', async () => {
+ it('shows the model selector in the assistant-ui composer', async () => {
await renderWithSelectedThread();
-
- const reasoningButton = await screen.findByRole('radio', { name: 'Reasoning' });
- expect(reasoningButton).toHaveAttribute('aria-checked', 'false');
-
- await act(async () => {
- fireEvent.click(reasoningButton);
- });
-
- await waitFor(() => {
- expect(mockSelectAgentProfile).toHaveBeenCalledWith('reasoning');
- // Store updates to the new active profile → toggle reflects the selection.
- expect(screen.getByRole('radio', { name: 'Reasoning' })).toHaveAttribute(
- 'aria-checked',
- 'true'
- );
- });
+ expect(await screen.findByRole('button', { name: 'Select model' })).toBeInTheDocument();
});
it('rejects an image and shows the advisory when the model lacks vision', async () => {