The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): isolate the consent dialog in preview-pane tests
Tekniumb0d2148b437d
diff --git a/apps/desktop/src/app/chat/right-rail/preview-pane.test.tsx b/apps/desktop/src/app/chat/right-rail/preview-pane.test.tsxindex cac9d8cc228..3fbc793d032 100644--- a/apps/desktop/src/app/chat/right-rail/preview-pane.test.tsx+++ b/apps/desktop/src/app/chat/right-rail/preview-pane.test.tsx@@ -7,6 +7,13 @@ import { $connection, $selectedStoredSessionId } from '@/store/session'import { forgetPreviewConsole, previewConsoleState } from './preview-console-store'import { PreviewPane } from './preview-pane'+// The consent dialog has its own test file and needs a QueryClientProvider;+// these tests exercise the pane's console/watch/webview wiring, not the+// prompt, so isolate it the way the pane's other collaborators are.+vi.mock('./real-profile-consent-dialog', () => ({+ RealProfileConsentDialog: () => null+}))+function stubPdfObjectUrls() {const NativeUrl = URLlet objectUrlIndex = 0