fix(mcp): remove Figma remote preset and open management (#6399)
* feat(mcp): configure OAuth client names in management * fix(mcp): use a short OAuth callback for Figma * fix(mcp): narrow catalog changes and remove Figma remote * test(mcp): drop unpublished Figma remote compatibility contract * fix(webui): align MCP catalog skeleton with card body
This commit is contained in:
1 parent
6a358a1e91
commit
06f3981962
11 files changed
+108
-52
No files matched your search
@@ -334,7 +334,7 @@ jobs:
|
|||||||
needs: changes
|
needs: changes
|
||||||
if: needs.changes.outputs.webui_required == 'true'
|
if: needs.changes.outputs.webui_required == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 25
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|||||||
@@ -87,9 +87,9 @@ Only features with a **Use proxy** switch use this address. Turning a switch off
|
|||||||
"tools": {
|
"tools": {
|
||||||
"web": { "useProxy": true },
|
"web": { "useProxy": true },
|
||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"figma-remote": {
|
"notion": {
|
||||||
"type": "streamableHttp",
|
"type": "streamableHttp",
|
||||||
"url": "https://mcp.figma.com/mcp",
|
"url": "https://mcp.notion.com/mcp",
|
||||||
"auth": "oauth",
|
"auth": "oauth",
|
||||||
"useProxy": true
|
"useProxy": true
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-4
@@ -25,7 +25,6 @@ Browser sign-in uses the service's MCP OAuth flow. API-key presets ask for the c
|
|||||||
| Airtable | Browser OAuth | [Official guide](https://support.airtable.com/articles/9897799762-using-the-airtable-mcp-server) |
|
| Airtable | Browser OAuth | [Official guide](https://support.airtable.com/articles/9897799762-using-the-airtable-mcp-server) |
|
||||||
| Miro | Browser OAuth | [Official guide](https://developers.miro.com/docs/connecting-to-miro-mcp) |
|
| Miro | Browser OAuth | [Official guide](https://developers.miro.com/docs/connecting-to-miro-mcp) |
|
||||||
| Whimsical | Browser OAuth | [Official guide](https://whimsical.com/learn/integrations/mcp) |
|
| Whimsical | Browser OAuth | [Official guide](https://whimsical.com/learn/integrations/mcp) |
|
||||||
| Figma (remote) | Browser OAuth | [Official guide](https://developers.figma.com/docs/figma-mcp-server/) |
|
|
||||||
| Supabase (remote) | Browser OAuth | [Official guide](https://supabase.com/docs/guides/ai-tools/mcp) |
|
| Supabase (remote) | Browser OAuth | [Official guide](https://supabase.com/docs/guides/ai-tools/mcp) |
|
||||||
| Neon | Browser OAuth | [Official guide](https://neon.com/docs/ai/neon-mcp-server) |
|
| Neon | Browser OAuth | [Official guide](https://neon.com/docs/ai/neon-mcp-server) |
|
||||||
| Vercel | Browser OAuth | [Official guide](https://vercel.com/docs/agent-resources/vercel-mcp) |
|
| Vercel | Browser OAuth | [Official guide](https://vercel.com/docs/agent-resources/vercel-mcp) |
|
||||||
@@ -123,9 +122,7 @@ Browser sign-in uses the service's MCP OAuth flow. API-key presets ask for the c
|
|||||||
|
|
||||||
Datadog uses the MCP endpoint for your Datadog site and a Personal or Service Access Token. DigitalOcean publishes separate endpoints for its services; copy the endpoint for the service you need. Metabase requires an instance with MCP enabled. Copy Sigma's URL from **Profile → Integrations** and Descript's URL from **Settings → Descript MCP**.
|
Datadog uses the MCP endpoint for your Datadog site and a Personal or Service Access Token. DigitalOcean publishes separate endpoints for its services; copy the endpoint for the service you need. Metabase requires an instance with MCP enabled. Copy Sigma's URL from **Profile → Integrations** and Descript's URL from **Settings → Descript MCP**.
|
||||||
|
|
||||||
Figma uses the desktop app's local MCP endpoint, and Supabase starts a local server in read-only mode. Their **(remote)** variants use browser sign-in. GitHub uses Docker; **GitHub (remote)** uses a personal access token. Changes to credentials retain the connection's tool selection, timeout, and other saved settings.
|
Figma uses the desktop app's local MCP endpoint. Supabase starts a local server in read-only mode; **Supabase (remote)** uses browser sign-in. GitHub uses Docker; **GitHub (remote)** uses a personal access token. Changes to credentials retain the connection's tool selection, timeout, and other saved settings.
|
||||||
|
|
||||||
Figma (remote) also requires [Figma's approval of the MCP client](https://developers.figma.com/docs/figma-mcp-server/remote-server-installation/). A client rejected during registration cannot connect until Figma approves it, even when its network connection works.
|
|
||||||
|
|
||||||
## Local servers
|
## Local servers
|
||||||
|
|
||||||
|
|||||||
@@ -527,24 +527,6 @@
|
|||||||
},
|
},
|
||||||
"requires": "Whimsical account"
|
"requires": "Whimsical account"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "figma-remote",
|
|
||||||
"display_name": "Figma (remote)",
|
|
||||||
"category": "design",
|
|
||||||
"description": "Read design context and work with Figma files through the hosted server.",
|
|
||||||
"docs_url": "https://developers.figma.com/docs/figma-mcp-server/",
|
|
||||||
"transport": "streamableHttp",
|
|
||||||
"install_supported": true,
|
|
||||||
"brand_domain": "figma.com",
|
|
||||||
"brand_color": "#F24E1E",
|
|
||||||
"server": {
|
|
||||||
"type": "streamableHttp",
|
|
||||||
"auth": "oauth",
|
|
||||||
"url": "https://mcp.figma.com/mcp",
|
|
||||||
"tool_timeout": 60
|
|
||||||
},
|
|
||||||
"requires": "Figma account"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "supabase-remote",
|
"name": "supabase-remote",
|
||||||
"display_name": "Supabase (remote)",
|
"display_name": "Supabase (remote)",
|
||||||
|
|||||||
@@ -149,26 +149,36 @@ const unbrandedPlugin: McpPresetInfo = {
|
|||||||
};
|
};
|
||||||
function AppsFixture() {
|
function AppsFixture() {
|
||||||
const noop = () => {};
|
const noop = () => {};
|
||||||
|
const managing = parameters.has("manage");
|
||||||
|
const [actions, setActions] = useState<unknown[]>([]);
|
||||||
|
const presets: McpPresetInfo[] = managing ? [{
|
||||||
|
name: "design", display_name: "Design MCP", category: "design", description: "Read design context",
|
||||||
|
docs_url: "", transport: "streamableHttp", auth: "oauth", requires: "", note: "",
|
||||||
|
install_supported: true, installed: false, configured: false, available: true,
|
||||||
|
status: "not_installed", required_fields: [], connection_summary: "https://design.example/mcp", source: "preset",
|
||||||
|
}] : [
|
||||||
|
unbrandedPlugin,
|
||||||
|
{ ...unbrandedPlugin, name: "test-mcp", display_name: "Test MCP", source: "builtin", logo_url: "/missing-app-icon.svg" },
|
||||||
|
{ ...unbrandedPlugin, name: "brand-example", display_name: "Brand Example", source: "builtin", brand_color: "#5E6AD2" },
|
||||||
|
];
|
||||||
return <main className="mx-auto max-w-4xl p-6"><AppsCatalogSettings
|
return <main className="mx-auto max-w-4xl p-6"><AppsCatalogSettings
|
||||||
cliApps={{ apps: [], installed_count: 0 }}
|
cliApps={{ apps: [], installed_count: 0 }}
|
||||||
mcpPresets={{ presets: [
|
mcpPresets={{ presets, installed_count: managing ? 0 : 3 }}
|
||||||
unbrandedPlugin,
|
cliAppsLoading={false} mcpPresetsLoading={false} query="" filter={managing ? "mcp" : "ready"}
|
||||||
{ ...unbrandedPlugin, name: "test-mcp", display_name: "Test MCP", source: "builtin", logo_url: "/missing-app-icon.svg" },
|
|
||||||
{ ...unbrandedPlugin, name: "brand-example", display_name: "Brand Example", source: "builtin", brand_color: "#5E6AD2" },
|
|
||||||
], installed_count: 3 }}
|
|
||||||
cliAppsLoading={false} mcpPresetsLoading={false} query="" filter="ready"
|
|
||||||
cliActionKey={null} mcpActionKey={null} mcpOAuthFlow={null} mcpOAuthPopupBlocked={false}
|
cliActionKey={null} mcpActionKey={null} mcpOAuthFlow={null} mcpOAuthPopupBlocked={false}
|
||||||
mcpOAuthCallbackUrl="" mcpOAuthCompleting={false} mcpOAuthCallbackError={null}
|
mcpOAuthCallbackUrl="" mcpOAuthCompleting={false} mcpOAuthCallbackError={null}
|
||||||
cliMessage={null} cliError={null} cliFocusName={null} mcpMessage={null} mcpError={null}
|
cliMessage={null} cliError={null} cliFocusName={null} mcpMessage={null} mcpError={null}
|
||||||
mcpFieldValues={{}} customMcpForm={DEFAULT_CUSTOM_MCP_FORM} mcpConfigImport=""
|
mcpFieldValues={{}} customMcpForm={DEFAULT_CUSTOM_MCP_FORM} mcpConfigImport=""
|
||||||
showBrandLogos={parameters.get("logos") !== "hidden"} requiresRestartPending={false}
|
showBrandLogos={parameters.get("logos") !== "hidden"} requiresRestartPending={false}
|
||||||
onQueryChange={noop} onFilterChange={noop} onCliAction={noop} onMcpAction={noop}
|
onQueryChange={noop} onFilterChange={noop} onCliAction={noop}
|
||||||
onMcpOAuthConnect={noop} onMcpOAuthCancel={noop} onMcpOAuthOpen={noop}
|
onMcpAction={(action, name, values) => setActions((prev) => [...prev, { action, name, values }])}
|
||||||
|
onMcpOAuthConnect={(name, reset, values) => setActions((prev) => [...prev, { action: "oauth", name, reset, values }])}
|
||||||
|
onMcpOAuthCancel={noop} onMcpOAuthOpen={noop}
|
||||||
onMcpOAuthCallbackUrlChange={noop} onMcpOAuthComplete={noop} onDismissStatus={noop}
|
onMcpOAuthCallbackUrlChange={noop} onMcpOAuthComplete={noop} onDismissStatus={noop}
|
||||||
onBackToChat={noop} onMcpFieldChange={noop} onCustomMcpFormChange={noop}
|
onBackToChat={noop} onMcpFieldChange={noop} onCustomMcpFormChange={noop}
|
||||||
onMcpConfigImportChange={noop} onSaveCustomMcp={noop} onImportMcpConfig={noop}
|
onMcpConfigImportChange={noop} onSaveCustomMcp={noop} onImportMcpConfig={noop}
|
||||||
onMcpToolsChange={noop}
|
onMcpToolsChange={noop}
|
||||||
/></main>;
|
/>{managing && <output data-testid="mcp-actions">{JSON.stringify(actions)}</output>}</main>;
|
||||||
}
|
}
|
||||||
if (parameters.get("case") === "skeleton-additions") installSkeletonPreviewApi();
|
if (parameters.get("case") === "skeleton-additions") installSkeletonPreviewApi();
|
||||||
if (parameters.get("case") === "idle-compaction") installIdleCompactionApi();
|
if (parameters.get("case") === "idle-compaction") installIdleCompactionApi();
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
import { expect, test } from "@playwright/test";
|
||||||
|
|
||||||
|
for (const width of [390, 1100]) {
|
||||||
|
test(`MCP body opens management without connecting at ${width}px`, async ({ page }) => {
|
||||||
|
await page.setViewportSize({ width, height: 850 });
|
||||||
|
await page.goto("/browser/fixture.html?case=apps&manage");
|
||||||
|
const actions = page.getByTestId("mcp-actions");
|
||||||
|
const body = page.getByRole("button", { name: "Design MCP", exact: true });
|
||||||
|
const dialog = page.getByRole("dialog", { name: "Design MCP", exact: true });
|
||||||
|
await body.click();
|
||||||
|
await expect(dialog).toBeVisible();
|
||||||
|
await expect(dialog.getByRole("tab", { name: "Overview" })).toHaveAttribute("aria-selected", "true");
|
||||||
|
await expect(actions).toHaveText("[]");
|
||||||
|
await dialog.getByRole("button", { name: "Close", exact: true }).click();
|
||||||
|
await expect(dialog).not.toBeVisible();
|
||||||
|
await body.focus();
|
||||||
|
await page.keyboard.press(width === 390 ? "Enter" : "Space");
|
||||||
|
await expect(dialog).toBeVisible();
|
||||||
|
await expect(actions).toHaveText("[]");
|
||||||
|
await dialog.getByRole("button", { name: "Close", exact: true }).click();
|
||||||
|
await expect(dialog).not.toBeVisible();
|
||||||
|
await page.getByRole("button", { name: "Connect Design MCP" }).click();
|
||||||
|
await expect(dialog.getByRole("tab", { name: "Connection", exact: true })).toHaveAttribute("aria-selected", "true");
|
||||||
|
await expect(actions).toHaveText("[]");
|
||||||
|
await dialog.getByRole("button", { name: "Connect", exact: true }).click();
|
||||||
|
await expect(actions).toHaveText(JSON.stringify([{
|
||||||
|
action: "oauth", name: "design", reset: false, values: { use_proxy: "false" },
|
||||||
|
}]));
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -52,14 +52,17 @@ for (const width of [390, 1440]) {
|
|||||||
await page.goto(fixture(surface));
|
await page.goto(fixture(surface));
|
||||||
const loaded = page.locator(loadedSelector).first();
|
const loaded = page.locator(loadedSelector).first();
|
||||||
const row = await box(loaded);
|
const row = await box(loaded);
|
||||||
const icon = await box(surface === "channels" ? loaded.locator('[data-testid^="channel-logo"]') : loaded.locator(":scope > :first-child"));
|
const icon = await box(surface === "channels" ? loaded.locator('[data-testid^="channel-logo"]')
|
||||||
|
: loaded.locator(surface === "apps" ? ":scope > :first-child > :first-child" : ":scope > :first-child"));
|
||||||
const title = await box(loaded.locator("h3"));
|
const title = await box(loaded.locator("h3"));
|
||||||
const action = width === 1440 || surface !== "skills" ? await box(loaded.locator(":scope > :last-child")) : null;
|
const action = width === 1440 || surface !== "skills" ? await box(loaded.locator(":scope > :last-child")) : null;
|
||||||
await page.goto(fixture(surface, true));
|
await page.goto(fixture(surface, true));
|
||||||
const skeleton = status(page).locator(loadingSelector).first();
|
const skeleton = status(page).locator(loadingSelector).first();
|
||||||
sameBox(await box(skeleton), row);
|
sameBox(await box(skeleton), row);
|
||||||
sameBox(await box(skeleton.locator(":scope > :first-child")), icon);
|
sameBox(await box(skeleton.locator(surface === "apps" ? ":scope > :first-child > :first-child" : ":scope > :first-child")), icon);
|
||||||
const placeholder = await box(skeleton.locator(":scope > :nth-child(2) [class*='bg-muted-foreground']").first());
|
const placeholder = await box(skeleton.locator(surface === "apps"
|
||||||
|
? ":scope > :first-child > :nth-child(2) [class*='bg-muted-foreground']"
|
||||||
|
: ":scope > :nth-child(2) [class*='bg-muted-foreground']").first());
|
||||||
expect(placeholder.x).toBe(title.x);
|
expect(placeholder.x).toBe(title.x);
|
||||||
expect(placeholder.y + placeholder.height / 2).toBe(title.y + title.height / 2);
|
expect(placeholder.y + placeholder.height / 2).toBe(title.y + title.height / 2);
|
||||||
if (action) sameBox(await box(skeleton.locator(":scope > :last-child")), action);
|
if (action) sameBox(await box(skeleton.locator(":scope > :last-child")), action);
|
||||||
|
|||||||
@@ -25,22 +25,27 @@ export function CatalogSkeleton({ label, layout, appActionLabel }: {
|
|||||||
<div className={cn(block, "h-3 w-3 opacity-60")} />
|
<div className={cn(block, "h-3 w-3 opacity-60")} />
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
{Array.from({ length: 6 }, (_, index) => (
|
{Array.from({ length: 6 }, (_, index) => {
|
||||||
<div key={index} className={cn(
|
const icon = <div className={cn(block, "shrink-0", skills
|
||||||
|
? "h-1.5 w-1.5 rounded-full" : channels ? "h-8 w-8 rounded-[9px]" : "h-9 w-9 rounded-[10px]")} />;
|
||||||
|
const text = <div className="min-w-0 flex-1">
|
||||||
|
<div className="flex h-5 items-center">
|
||||||
|
<div className={cn(block, "h-3.5", index % 2 ? "w-1/2" : "w-2/3")} />
|
||||||
|
</div>
|
||||||
|
{!channels ? <div className="mt-0.5 flex h-5 items-center">
|
||||||
|
<div className={cn(block, "h-3 w-4/5 opacity-60")} />
|
||||||
|
</div> : null}
|
||||||
|
</div>;
|
||||||
|
return <div key={index} className={cn(
|
||||||
"flex min-w-0 items-center gap-3",
|
"flex min-w-0 items-center gap-3",
|
||||||
channels ? "settings-list-row py-2.5" : skills ? "px-2 py-3" : "px-3 py-3",
|
channels ? "settings-list-row py-2.5" : skills ? "px-2 py-3" : "px-3 py-3",
|
||||||
appActionLabel && "flex-wrap gap-x-3 gap-y-2",
|
appActionLabel && "flex-wrap gap-x-3 gap-y-2",
|
||||||
)}>
|
)}>
|
||||||
<div className={cn(block, "shrink-0", skills
|
{appActionLabel ? (
|
||||||
? "h-1.5 w-1.5 rounded-full" : channels ? "h-8 w-8 rounded-[9px]" : "h-9 w-9 rounded-[10px]")} />
|
<div className="flex min-w-0 flex-[1_1_8rem] items-center gap-3">
|
||||||
<div className={cn("min-w-0 flex-1", appActionLabel && "min-w-[8rem] flex-[1_1_8rem]")}>
|
{icon}{text}
|
||||||
<div className="flex h-5 items-center">
|
|
||||||
<div className={cn(block, "h-3.5", index % 2 ? "w-1/2" : "w-2/3")} />
|
|
||||||
</div>
|
</div>
|
||||||
{!channels ? <div className="mt-0.5 flex h-5 items-center">
|
) : <>{icon}{text}</>}
|
||||||
<div className={cn(block, "h-3 w-4/5 opacity-60")} />
|
|
||||||
</div> : null}
|
|
||||||
</div>
|
|
||||||
<div className={cn("flex shrink-0 items-center justify-center",
|
<div className={cn("flex shrink-0 items-center justify-center",
|
||||||
channels && "w-16", skills && "hidden h-[16.5px] w-[92px] justify-end sm:flex",
|
channels && "w-16", skills && "hidden h-[16.5px] w-[92px] justify-end sm:flex",
|
||||||
appActionLabel && "ml-auto")}>
|
appActionLabel && "ml-auto")}>
|
||||||
@@ -50,8 +55,8 @@ export function CatalogSkeleton({ label, layout, appActionLabel }: {
|
|||||||
</div> : <div className={cn(block, channels ? "h-5 w-[38px] rounded-full"
|
</div> : <div className={cn(block, channels ? "h-5 w-[38px] rounded-full"
|
||||||
: skills ? "h-3 w-20" : "h-9 w-9 rounded-full")} />}
|
: skills ? "h-3 w-20" : "h-9 w-9 rounded-full")} />}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>;
|
||||||
))}
|
})}
|
||||||
</SkeletonStatus>
|
</SkeletonStatus>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -612,8 +612,14 @@ function McpAppsCatalogRow({
|
|||||||
return (
|
return (
|
||||||
<article className="min-w-0 rounded-control transition-colors settings-hover">
|
<article className="min-w-0 rounded-control transition-colors settings-hover">
|
||||||
<div className="group flex min-w-0 flex-wrap items-center gap-x-3 gap-y-2 px-3 py-3">
|
<div className="group flex min-w-0 flex-wrap items-center gap-x-3 gap-y-2 px-3 py-3">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
aria-label={preset.display_name}
|
||||||
|
onClick={() => openManagement()}
|
||||||
|
className="flex min-w-0 flex-[1_1_8rem] items-center gap-3 rounded-control text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
||||||
|
>
|
||||||
<McpPresetLogo preset={preset} showBrandLogos={showBrandLogos} />
|
<McpPresetLogo preset={preset} showBrandLogos={showBrandLogos} />
|
||||||
<div className="min-w-[8rem] flex-[1_1_8rem]">
|
<div className="min-w-0 flex-1">
|
||||||
<div className="flex min-w-0 items-baseline gap-2">
|
<div className="flex min-w-0 items-baseline gap-2">
|
||||||
<h3 className="truncate text-[14px] font-semibold leading-5 text-foreground">{preset.display_name}</h3>
|
<h3 className="truncate text-[14px] font-semibold leading-5 text-foreground">{preset.display_name}</h3>
|
||||||
{showTypeBadge ? (
|
{showTypeBadge ? (
|
||||||
@@ -641,6 +647,7 @@ function McpAppsCatalogRow({
|
|||||||
) : null}
|
) : null}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
</button>
|
||||||
<div className="ml-auto flex shrink-0 items-center gap-1">
|
<div className="ml-auto flex shrink-0 items-center gap-1">
|
||||||
{oauthFlow ? (
|
{oauthFlow ? (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -261,6 +261,28 @@ describe("MCP connection draft lifecycle", () => {
|
|||||||
}],
|
}],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
it("opens management from an uninstalled MCP body without connecting or materializing it", async () => {
|
||||||
|
vi.stubGlobal("fetch", vi.fn(async (input: RequestInfo | URL) => {
|
||||||
|
const url = String(input);
|
||||||
|
if (url === "/api/settings/mcp-presets") {
|
||||||
|
return jsonResponse({ presets: [{ ...metabasePreset, installed: false, configured: false, available: false, status: "not_installed" }], installed_count: 0 });
|
||||||
|
}
|
||||||
|
if (url === "/api/settings") return jsonResponse(settingsPayload());
|
||||||
|
return { ok: false, status: 404, text: async () => "Not found" } as Response;
|
||||||
|
}));
|
||||||
|
renderSettingsView({ initialSection: "apps" });
|
||||||
|
fireEvent.click(await screen.findByRole("button", { name: "MCP" }));
|
||||||
|
fireEvent.click(await screen.findByRole("button", { name: "Metabase" }));
|
||||||
|
const dialog = await screen.findByRole("dialog", { name: "Metabase" });
|
||||||
|
expect(within(dialog).getByRole("tab", { name: "Overview" })).toHaveAttribute("aria-selected", "true");
|
||||||
|
expect(requestMutationMock).not.toHaveBeenCalled();
|
||||||
|
fireEvent.click(within(dialog).getByRole("button", { name: "Close" }));
|
||||||
|
fireEvent.click(screen.getByRole("button", { name: "Connect Metabase" }));
|
||||||
|
const connection = await screen.findByRole("dialog", { name: "Metabase" });
|
||||||
|
expect(within(connection).getByRole("tab", { name: "Connection" })).toHaveAttribute("aria-selected", "true");
|
||||||
|
expect(requestMutationMock).not.toHaveBeenCalled();
|
||||||
|
});
|
||||||
|
|
||||||
it("reopens and reconnects without proxy after OAuth with proxy and a same-endpoint import", async () => {
|
it("reopens and reconnects without proxy after OAuth with proxy and a same-endpoint import", async () => {
|
||||||
const endpoint = "https://app.xmind.com/api/mcp";
|
const endpoint = "https://app.xmind.com/api/mcp";
|
||||||
let preset: McpPresetInfo = {
|
let preset: McpPresetInfo = {
|
||||||
|
|||||||
@@ -281,7 +281,7 @@ describe("SettingsView Apps catalog", () => {
|
|||||||
expect(row).not.toBeNull();
|
expect(row).not.toBeNull();
|
||||||
expect(row?.parentElement).toHaveClass("xl:grid-cols-2");
|
expect(row?.parentElement).toHaveClass("xl:grid-cols-2");
|
||||||
const failed = within(row as HTMLElement).getByText("Connection failed.");
|
const failed = within(row as HTMLElement).getByText("Connection failed.");
|
||||||
expect(failed.closest("button")).toBeNull();
|
expect(failed.closest("button")).toHaveAccessibleName("Xmind");
|
||||||
expect(failed.closest("p")?.querySelector(".lucide-triangle-alert")).not.toBeNull();
|
expect(failed.closest("p")?.querySelector(".lucide-triangle-alert")).not.toBeNull();
|
||||||
expect(row?.querySelector(".lucide-check")).toBeNull();
|
expect(row?.querySelector(".lucide-check")).toBeNull();
|
||||||
expect(within(row as HTMLElement).getByRole("button", { name: "Manage Xmind" })).toHaveTextContent(
|
expect(within(row as HTMLElement).getByRole("button", { name: "Manage Xmind" })).toHaveTextContent(
|
||||||
|
|||||||
Reference in new issue
Block a user