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
refactor(test): replace renderWithProviders with renderAppSidebar in Rewards tests
Steven Enamakel8e3cd24dde34
diff --git a/app/src/components/layout/shell/AppSidebar.test.tsx b/app/src/components/layout/shell/AppSidebar.test.tsxindex 8bd7172b00..deaa8199fc 100644--- a/app/src/components/layout/shell/AppSidebar.test.tsx+++ b/app/src/components/layout/shell/AppSidebar.test.tsx@@ -54,7 +54,7 @@ describe('AppSidebar — Rewards footer entry', () => {});it('shows the Rewards row for a resolved cloud session and navigates + tracks on click', () => {- renderWithProviders(<AppSidebar />, { initialEntries: ['/chat'] });+ renderAppSidebar({ initialEntries: ['/chat'] });const rewards = screen.getByTitle('nav.rewards');expect(rewards).toBeInTheDocument();@@ -69,7 +69,7 @@ describe('AppSidebar — Rewards footer entry', () => {});it('normalizes from_path to a route template so entity IDs never reach analytics', () => {- renderWithProviders(<AppSidebar />, { initialEntries: ['/chat/thread-abc123'] });+ renderAppSidebar({ initialEntries: ['/chat/thread-abc123'] });fireEvent.click(screen.getByTitle('nav.rewards'));@@ -81,7 +81,7 @@ describe('AppSidebar — Rewards footer entry', () => {it('hides the Rewards row for a local session but keeps Feedback', () => {mockCoreState = { snapshot: { sessionToken: 'header.payload.local' }, isReady: true };- renderWithProviders(<AppSidebar />, { initialEntries: ['/chat'] });+ renderAppSidebar({ initialEntries: ['/chat'] });expect(screen.queryByTitle('nav.rewards')).not.toBeInTheDocument();expect(screen.getByTitle('nav.feedback')).toBeInTheDocument();@@ -92,14 +92,14 @@ describe('AppSidebar — Rewards footer entry', () => {// isLocalSessionToken(null) is false, so gating on the token alone would// briefly show Rewards here — the isReady guard prevents that flash.mockCoreState = { snapshot: { sessionToken: null }, isReady: false };- renderWithProviders(<AppSidebar />, { initialEntries: ['/chat'] });+ renderAppSidebar({ initialEntries: ['/chat'] });expect(screen.queryByTitle('nav.rewards')).not.toBeInTheDocument();expect(screen.getByTitle('nav.feedback')).toBeInTheDocument();});it('marks the Rewards row active on the /rewards route', () => {- renderWithProviders(<AppSidebar />, { initialEntries: ['/rewards'] });+ renderAppSidebar({ initialEntries: ['/rewards'] });expect(screen.getByTitle('nav.rewards')).toHaveAttribute('aria-current', 'page');});