From ad1ff9b3292d66963daf91ca5216bec4d80616ec Mon Sep 17 00:00:00 2001 From: Dotta Date: Tue, 6 Oct 2026 21:33:50 -0500 Subject: [PATCH] test(mcp): assert Dot cannot gain configuration consent Co-Authored-By: Paperclip --- ui/src/pages/McpConnect.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/pages/McpConnect.test.tsx b/ui/src/pages/McpConnect.test.tsx index 1a69f885814..96b6e9f69e1 100644 --- a/ui/src/pages/McpConnect.test.tsx +++ b/ui/src/pages/McpConnect.test.tsx @@ -196,7 +196,7 @@ it.each([false, true])("explains Dot agent consent and requires an operator in b await vi.waitFor(() => expect(connect().disabled).toBe(false)); flushSync(() => connect().click()); await vi.waitFor(() => expect(api.post).toHaveBeenCalledWith(device ? "/mcp/device/consent" : "/mcp/requests/request-one/consent", { - decision: "approve", companyId: "company-one", allowWrites: false, ...(device ? { userCode: "MIST-YPED" } : {}), + decision: "approve", companyId: "company-one", allowWrites: false, allowConfiguration: false, ...(device ? { userCode: "MIST-YPED" } : {}), })); } finally { page.cleanup(); } });