test(mcp): assert Dot cannot gain configuration consent

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-06 21:37:33 -05:00
1 parent 3023aa2f61
commit ad1ff9b329
1 file changed
+1 -1
+1 -1
View File
@@ -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(); }
});