mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-10 14:28:38 +03:00
test(webui): use canonical computer use URL
This commit is contained in:
@@ -581,11 +581,11 @@ describe("SettingsView Apps catalog", () => {
|
||||
|
||||
it("sets up and enables an installed Agent Plugin explicitly", async () => {
|
||||
const plugin = {
|
||||
name: "plugin-nanobot-computer-use",
|
||||
name: "plugin-computer-use",
|
||||
display_name: "Computer Use",
|
||||
description: "Control the desktop with a live preview.",
|
||||
category: "Productivity",
|
||||
docs_url: "https://github.com/nanobot-dev/nanobot-computer-use",
|
||||
docs_url: "https://github.com/nanobot-dev/computer-use",
|
||||
transport: "stdio",
|
||||
requires: "screen-recording, accessibility",
|
||||
note: "",
|
||||
@@ -609,7 +609,7 @@ describe("SettingsView Apps catalog", () => {
|
||||
if (url === "/api/settings/mcp-presets") {
|
||||
return jsonResponse({ presets: [plugin], installed_count: 0 });
|
||||
}
|
||||
if (url === "/api/settings/mcp-presets/enable?name=plugin-nanobot-computer-use") {
|
||||
if (url === "/api/settings/mcp-presets/enable?name=plugin-computer-use") {
|
||||
return jsonResponse({
|
||||
presets: [{ ...plugin, configured: true, available: true, status: "configured" }],
|
||||
installed_count: 1,
|
||||
@@ -631,7 +631,7 @@ describe("SettingsView Apps catalog", () => {
|
||||
|
||||
await waitFor(() => {
|
||||
expect(fetchMock).toHaveBeenCalledWith(
|
||||
"/api/settings/mcp-presets/enable?name=plugin-nanobot-computer-use",
|
||||
"/api/settings/mcp-presets/enable?name=plugin-computer-use",
|
||||
expect.objectContaining({ headers: { Authorization: "Bearer tok" } }),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user