Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

New room test: the dialog stand-in covers every part the form now pulls in

Simon Flack218c97d03ad6
diff --git a/console/apps/switch-console-desktop/src/renderer/tests/browser/create-room-modal-wiring.test.tsx b/console/apps/switch-console-desktop/src/renderer/tests/browser/create-room-modal-wiring.test.tsx
index ac587c776..90ae810da 100644
--- a/console/apps/switch-console-desktop/src/renderer/tests/browser/create-room-modal-wiring.test.tsx
+++ b/console/apps/switch-console-desktop/src/renderer/tests/browser/create-room-modal-wiring.test.tsx
@@ -68,7 +68,16 @@ vi.mock('@renderer/lib/modal/modal-provider', () => ({
// The dialog's frame needs an open dialog around it; its contents are the subject here.
vi.mock('@renderer/lib/ui/dialog', () => {
const pass = ({ children }: { children?: React.ReactNode }) => <>{children}</>;
- return { DialogContentArea: pass, DialogFooter: pass, DialogHeader: pass, DialogTitle: pass };
+ return {
+ Dialog: pass,
+ DialogClose: pass,
+ DialogContent: pass,
+ DialogContentArea: pass,
+ DialogDescription: pass,
+ DialogFooter: pass,
+ DialogHeader: pass,
+ DialogTitle: pass,
+ };
});
// The app pill is a menu; a plain select stands in for it, as the choice is what matters here.
vi.mock('@renderer/features/switch-servers/messaging-app-selector', () => ({