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(settings): render hop two instead of grepping for it
M3gA-Minda14dd198bd66
diff --git a/app/src/components/settings/settingsRouteElements.test.tsx b/app/src/components/settings/settingsRouteElements.test.tsxindex b759ba3222..470677da1e 100644--- a/app/src/components/settings/settingsRouteElements.test.tsx+++ b/app/src/components/settings/settingsRouteElements.test.tsx@@ -27,3 +27,48 @@ describe.each([expect(screen.queryByText(/screen awareness debug/i)).not.toBeInTheDocument();});});++/**+ * Hop two of the `/webhooks` chain (#5908).+ *+ * /webhooks -> /settings/integrations AppRoutes.tsx+ * /settings/integrations -> /connections here+ *+ * Both hops used a bare `<Navigate>`, which discards `search` and `hash`.+ * Fixing only the first was not enough — the deep link reached+ * `/settings/integrations` and was dropped here. This route is also reachable on+ * its own by anyone holding an old Integrations settings link, so it needs the+ * forwarding regardless of how they arrived.+ *+ * Rendered through the real route table rather than through `AppRoutes`, because+ * every AppRoutes spec stubs `./pages/Settings` and the stub removes this hop.+ */+describe('retired /settings/integrations route', () => {+ function renderAt(hash: string) {+ window.location.hash = `#${hash}`;+ render(+ <HashRouter>+ <Routes>+ <Route path="/settings" element={<Outlet />}>+ {settingsRouteElements()}+ </Route>+ </Routes>+ </HashRouter>+ );+ }++ it('redirects to /connections', async () => {+ renderAt('/settings/integrations');+ await waitFor(() => expect(window.location.hash).toBe('#/connections'));+ });++ it('carries a query string and a fragment through the redirect', async () => {+ renderAt('/settings/integrations?tab=inbound#delivery-3');+ await waitFor(() => expect(window.location.hash).toBe('#/connections?tab=inbound#delivery-3'));+ });++ it('invents no stray ? or # when the link carries neither', async () => {+ renderAt('/settings/integrations');+ await waitFor(() => expect(window.location.hash).toBe('#/connections'));+ });+});