diff --git a/src/components/insights/__tests__/device-score-surfaces.test.tsx b/src/components/insights/__tests__/device-score-surfaces.test.tsx index 5b26ba04a..e36b88076 100644 --- a/src/components/insights/__tests__/device-score-surfaces.test.tsx +++ b/src/components/insights/__tests__/device-score-surfaces.test.tsx @@ -3,6 +3,7 @@ import { renderToStaticMarkup } from "react-dom/server"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { I18nProvider } from "@/lib/i18n/context"; +import { queryKeys } from "@/lib/query-keys"; import type { DataSummary } from "@/lib/analytics/trends"; /** @@ -45,6 +46,12 @@ function render(node: React.ReactNode) { const queryClient = new QueryClient({ defaultOptions: { queries: { retry: false, staleTime: Infinity } }, }); + // The recovery page's empty note waits for the connection status; an + // account with no integrations is the settled answer here. + queryClient.setQueryData(queryKeys.integrationsStatus(), { + threshold: 3, + integrations: [], + }); return renderToStaticMarkup( {node}