From 4ddccbd28dc85489f450fcfeea86a10a9454691c Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 11 May 2026 09:48:48 +0100 Subject: [PATCH] test: tighten comfy provider assertions --- extensions/comfy/index.test.ts | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/extensions/comfy/index.test.ts b/extensions/comfy/index.test.ts index d516e8127cd..89af0191729 100644 --- a/extensions/comfy/index.test.ts +++ b/extensions/comfy/index.test.ts @@ -30,14 +30,22 @@ describe("comfy provider plugin", () => { }); expect(choice?.provider.id).toBe("comfy"); expect(choice?.method.id).toBe("cloud-api-key"); - expect(readManifest().providerAuthChoices).toEqual( - expect.arrayContaining([ - expect.objectContaining({ - provider: "comfy", - method: "cloud-api-key", - choiceId: "comfy-cloud-api-key", - }), - ]), - ); + expect(readManifest().providerAuthChoices).toEqual([ + { + provider: "comfy", + method: "cloud-api-key", + choiceId: "comfy-cloud-api-key", + choiceLabel: "Comfy Cloud API key", + choiceHint: "Required for cloud workflows", + cliOption: "--comfy-api-key ", + cliFlag: "--comfy-api-key", + cliDescription: "Comfy Cloud API key", + optionKey: "comfyApiKey", + groupId: "comfy", + groupLabel: "ComfyUI", + groupHint: "Local or cloud workflows", + onboardingScopes: ["image-generation"], + }, + ]); }); });