The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(settings): correct AI panel test to verify model selection behaviour
Steven Enamakel1cabadc74e73
diff --git a/app/src/components/settings/panels/__tests__/AIPanel.test.tsx b/app/src/components/settings/panels/__tests__/AIPanel.test.tsxindex a4a704073e..057be2c4d5 100644--- a/app/src/components/settings/panels/__tests__/AIPanel.test.tsx+++ b/app/src/components/settings/panels/__tests__/AIPanel.test.tsx@@ -1880,7 +1880,7 @@ describe('AIPanel', () => {fireEvent.click(await screen.findByRole('radio', { name: /Advanced/i }));const reasoningRow = await screen.findByText('Reasoning');- const rowEl = reasoningRow.closest('div.flex.items-center.justify-between');+ const rowEl = reasoningRow.closest('[data-slot="workload-row"]');expect(rowEl).not.toBeNull();fireEvent.click(within(rowEl as HTMLElement).getByRole('button', { name: /Change Model/i }));@@ -1939,7 +1939,7 @@ describe('AIPanel', () => {fireEvent.click(await screen.findByRole('radio', { name: /Advanced/i }));const reasoningRow = await screen.findByText('Reasoning');- const rowEl = reasoningRow.closest('div.flex.items-center.justify-between');+ const rowEl = reasoningRow.closest('[data-slot="workload-row"]');expect(rowEl).not.toBeNull();fireEvent.click(within(rowEl as HTMLElement).getByRole('button', { name: /Change Model/i }));@@ -1987,7 +1987,7 @@ describe('AIPanel', () => {fireEvent.click(await screen.findByRole('radio', { name: /Advanced/i }));const reasoningRow = await screen.findByText('Reasoning');- const rowEl = reasoningRow.closest('div.flex.items-center.justify-between');+ const rowEl = reasoningRow.closest('[data-slot="workload-row"]');expect(rowEl).not.toBeNull();fireEvent.click(within(rowEl as HTMLElement).getByRole('button', { name: /Change Model/i }));@@ -2028,7 +2028,7 @@ describe('AIPanel', () => {fireEvent.click(await screen.findByRole('radio', { name: /Advanced/i }));const reasoningRow = await screen.findByText('Reasoning');- const rowEl = reasoningRow.closest('div.flex.items-center.justify-between');+ const rowEl = reasoningRow.closest('[data-slot="workload-row"]');expect(rowEl).not.toBeNull();fireEvent.click(within(rowEl as HTMLElement).getByRole('button', { name: /Change Model/i }));