mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-11 23:36:51 +02:00
test(dot): preserve isolation with personalized connection controls
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
beb1d5598a
commit
3e76064fcd
1 file changed
+3
-2
@@ -150,8 +150,9 @@ describe("assistant setup from Connections", () => {
|
||||
await act(async () => { await client.invalidateQueries({ queryKey: ["mcp-connections"] }); });
|
||||
await flush();
|
||||
expect(container.textContent).toContain("Connected as you · Read and write");
|
||||
expect(container.querySelector('[aria-label="Revoke OpenCode connection"]')).not.toBeNull();
|
||||
expect(container.querySelector('[aria-label="Revoke Dedicated Dot connection"]')).toBeNull();
|
||||
expect(container.querySelector('[aria-label="Revoke Dotta’s OpenCode connection"]')).not.toBeNull();
|
||||
expect(container.textContent).not.toContain("Dedicated Dot");
|
||||
expect(container.querySelector('[aria-label="Revoke Dotta’s Dedicated Dot connection"]')).toBeNull();
|
||||
});
|
||||
it("shows a recoverable error instead of pretending setup succeeded", async () => {
|
||||
mocks.setup.mockRejectedValue(new Error("offline"));
|
||||
|
||||
Reference in new issue
Block a user