diff --git a/src/plugins/provider-auth-choices.test.ts b/src/plugins/provider-auth-choices.test.ts index 55484f95bb6..61e8ed27b25 100644 --- a/src/plugins/provider-auth-choices.test.ts +++ b/src/plugins/provider-auth-choices.test.ts @@ -260,11 +260,16 @@ describe("provider auth choice manifest helpers", () => { includeUntrustedWorkspacePlugins: false, }), ).toEqual([ - expect.objectContaining({ + { pluginId: "openai", providerId: "openai", + methodId: "api-key", choiceId: "openai-api-key", - }), + choiceLabel: "OpenAI API key", + optionKey: "openaiApiKey", + cliFlag: "--openai-api-key", + cliOption: "--openai-api-key ", + }, ]); expect( resolveManifestProviderAuthChoice("openai-api-key", { @@ -494,11 +499,16 @@ describe("provider auth choice manifest helpers", () => { ]); expect(resolveManifestProviderAuthChoices()).toEqual([ - expect.objectContaining({ + { pluginId: "openai", providerId: "openai", + methodId: "api-key", choiceId: "openai-api-key", - }), + choiceLabel: "OpenAI API key", + optionKey: "openaiApiKey", + cliFlag: "--openai-api-key", + cliOption: "--openai-api-key ", + }, ]); expect(resolveManifestProviderAuthChoice("openai-api-key")?.providerId).toBe("openai"); expect(resolveManifestProviderOnboardAuthFlags()).toEqual([ @@ -549,11 +559,16 @@ describe("provider auth choice manifest helpers", () => { ]); expect(resolveManifestProviderAuthChoices()).toEqual([ - expect.objectContaining({ + { pluginId: "custom-openai", providerId: "custom-openai", + methodId: "api-key", choiceId: "openai-api-key", - }), + choiceLabel: "OpenAI API key", + optionKey: "openaiApiKey", + cliFlag: "--openai-api-key", + cliOption: "--openai-api-key ", + }, ]); expect(resolveManifestProviderAuthChoice("openai-api-key")?.providerId).toBe("custom-openai"); expect(resolveManifestProviderOnboardAuthFlags()).toEqual([