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 AutonomyPanel test to verify default value
Steven Enamakel2575ab21f0d9
diff --git a/app/src/components/settings/panels/__tests__/AutonomyPanel.test.tsx b/app/src/components/settings/panels/__tests__/AutonomyPanel.test.tsxindex aaf157971a..59702cdde0 100644--- a/app/src/components/settings/panels/__tests__/AutonomyPanel.test.tsx+++ b/app/src/components/settings/panels/__tests__/AutonomyPanel.test.tsx@@ -167,9 +167,13 @@ describe('AutonomyRateLimitSection', () => {const unlimitedBtn = screen.getByRole('button', { name: /unlimited/i });fireEvent.click(unlimitedBtn);- // The input value should be set to the UNLIMITED sentinel (4294967295)+ // The UNLIMITED sentinel (4294967295) renders as an empty field with an+ // ∞ placeholder, not the raw number — see AutonomyPanel.tsx:+ // `value={draft === String(UNLIMITED) ? '' : draft}`.const input = screen.getByRole('spinbutton') as HTMLInputElement;- await waitFor(() => expect(Number(input.value)).toBe(4_294_967_295));+ await waitFor(() => expect(input.value).toBe(''));+ expect(input.placeholder).toBe('∞');+ await screen.findByText(/Unlimited: rate limiting disabled\./i);// Save button enabled because value changedexpect(screen.getByRole('button', { name: /^Save$/ })).not.toBeDisabled();});