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(rewards): update tests to navigate via URL instead of tab clicks\n\nReferrals and Redeem are now separate pages accessed through the `?view=` URL parameter rather than chip tabs on a single page. The tests are updated to enter the correct initial URL and remove the now-unnecessary tab click events.\n\nAuto-committed-on: macbook\n
Steven Enamakele3bef7aa6984
diff --git a/app/src/pages/__tests__/Rewards.test.tsx b/app/src/pages/__tests__/Rewards.test.tsxindex 17a9e7b2bb..96eac63920 100644--- a/app/src/pages/__tests__/Rewards.test.tsx+++ b/app/src/pages/__tests__/Rewards.test.tsx@@ -215,14 +215,14 @@ describe('Rewards page', () => {achievements: [],});+ // Referrals is its own page now, addressed by `?view=`, not a chip tab on+ // one page — so the view is entered by URL rather than by clicking a tab.render(- <MemoryRouter initialEntries={['/?view=main']}>+ <MemoryRouter initialEntries={['/?view=referrals']}><Rewards /></MemoryRouter>);- fireEvent.click(screen.getByRole('tab', { name: 'Referrals' }));-expect(screen.getByText('Referral Rewards Section')).toBeInTheDocument();expect(screen.queryByText('Rewards Coupon Section')).not.toBeInTheDocument();expect(screen.queryByText('Earn community roles')).not.toBeInTheDocument();@@ -256,13 +256,11 @@ describe('Rewards page', () => {});render(- <MemoryRouter initialEntries={['/?view=main']}>+ <MemoryRouter initialEntries={['/?view=redeem']}><Rewards /></MemoryRouter>);- fireEvent.click(screen.getByRole('tab', { name: 'Redeem' }));-expect(screen.getByText('Rewards Coupon Section')).toBeInTheDocument();expect(screen.queryByText('Referral Rewards Section')).not.toBeInTheDocument();});