mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-24 10:13:11 +02:00
test(mcp): assert Dot cannot gain configuration consent
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
3023aa2f61
commit
ad1ff9b329
1 file changed
+1
-1
@@ -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(); }
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user