mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-29 06:33:28 +00:00
test(ui): expect the change source in customer MCP tool permission tests
This commit is contained in:
parent
0ab63669c8
commit
133bd508ca
1 changed files with 2 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ describe("MCPToolPermissions", () => {
|
|||
|
||||
await user.click(screen.getByRole("checkbox", { name: "delete_record" }));
|
||||
|
||||
expect(onChange).toHaveBeenCalledExactlyOnceWith({ [mockServerId]: ["list_records"] });
|
||||
expect(onChange).toHaveBeenCalledExactlyOnceWith({ [mockServerId]: ["list_records"] }, "edit");
|
||||
});
|
||||
|
||||
it("defaults a newly added edit server to non-delete tools without narrowing stored servers", async () => {
|
||||
|
|
@ -78,7 +78,7 @@ describe("MCPToolPermissions", () => {
|
|||
rerender(<MCPToolPermissions {...props} selectedServers={[mockServerId, newServerId]} />);
|
||||
|
||||
await waitFor(() => {
|
||||
expect(onChange).toHaveBeenCalledExactlyOnceWith({ [newServerId]: ["list_records"] });
|
||||
expect(onChange).toHaveBeenCalledExactlyOnceWith({ [newServerId]: ["list_records"] }, "default");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue