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
chore: files changed app/test/refcheck.test.tsx
Steven Enamakel4dabf3f52819
diff --git a/app/test/refcheck.test.tsx b/app/test/refcheck.test.tsxnew file mode 100644index 0000000000..3b9b9ac633--- /dev/null+++ b/app/test/refcheck.test.tsx@@ -0,0 +1,18 @@+import { render, screen, fireEvent } from '@testing-library/react';+import { useState } from 'react';+import { describe, it, expect } from 'vitest';+import SettingsSearchBar from '../../src/components/settings/search/SettingsSearchBar';++function Harness() {+ const [v, setV] = useState('hello');+ return <SettingsSearchBar value={v} onValueChange={setV} />;+}++describe('ref forwarding through the shadcn Input', () => {+ it('refocuses the input after clearing', () => {+ render(<Harness />);+ const input = screen.getByTestId('settings-search-input');+ fireEvent.click(screen.getByTestId('settings-search-clear'));+ expect(document.activeElement).toBe(input);+ });+});