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
test(sidebar): add test for sidebar component
Steven Enamakele41051093301
diff --git a/app/src/components/ui/Sidebar.test.tsx b/app/src/components/ui/Sidebar.test.tsxindex 968a34cd79..ec0e65ece0 100644--- a/app/src/components/ui/Sidebar.test.tsx+++ b/app/src/components/ui/Sidebar.test.tsx@@ -201,6 +201,32 @@ describe('Sidebar', () => {expect(onWidthChange).toHaveBeenLastCalledWith(188);});+ it('defaults the seam indicator to line-chrome — every current caller paints on the chrome', () => {+ renderShell({ collapsible: 'icon' });+ // The indicator is a nested `<span>`, not the `role="separator"` element+ // itself — assert on the actual child rather than the outer div, which is+ // exactly the seam a `className` override on the rail could never reach.+ const indicator = screen.getByTestId('rail').querySelector('span:last-child');+ expect(indicator?.className).toContain('group-hover:bg-line-chrome');+ expect(indicator?.className).toContain('group-focus:bg-line-chrome');+ expect(indicator?.className).not.toMatch(/\bgroup-hover:bg-line\b/);+ });++ it('lets a caller override the seam indicator via indicatorClassName', () => {+ render(+ <SidebarProvider>+ <SidebarRail+ data-testid="rail"+ aria-label="Resize"+ indicatorClassName="group-hover:bg-line group-focus:bg-line"+ />+ </SidebarProvider>+ );+ const indicator = screen.getByTestId('rail').querySelector('span:last-child');+ expect(indicator?.className).toContain('group-hover:bg-line');+ expect(indicator?.className).not.toContain('bg-line-chrome');+ });+it('binds mod+B only when keyboardShortcut is enabled', async () => {const user = userEvent.setup();const { unmount } = render(