diff --git a/packages/cli/src/ui/auth/AuthDialog.test.tsx b/packages/cli/src/ui/auth/AuthDialog.test.tsx index 1de5f7236..93913ce26 100644 --- a/packages/cli/src/ui/auth/AuthDialog.test.tsx +++ b/packages/cli/src/ui/auth/AuthDialog.test.tsx @@ -614,65 +614,4 @@ describe('AuthDialog', () => { expect(lastFrame()).toContain('Custom Configuration'); unmount(); }); - - it('shows Alibaba Cloud ModelStudio Standard API Key region endpoint', async () => { - const settings: LoadedSettings = new LoadedSettings( - { - settings: { ui: { customThemes: {} }, mcpServers: {} }, - originalSettings: { ui: { customThemes: {} }, mcpServers: {} }, - path: '', - }, - { - settings: {}, - originalSettings: {}, - path: '', - }, - { - settings: { - security: { auth: { selectedType: undefined } }, - ui: { customThemes: {} }, - mcpServers: {}, - }, - originalSettings: { - security: { auth: { selectedType: undefined } }, - ui: { customThemes: {} }, - mcpServers: {}, - }, - path: '', - }, - { - settings: { ui: { customThemes: {} }, mcpServers: {} }, - originalSettings: { ui: { customThemes: {} }, mcpServers: {} }, - path: '', - }, - true, - new Set(), - ); - - const { stdin, lastFrame, unmount } = renderAuthDialog(settings, {}, {}); - await wait(); - - // Main -> API Key - stdin.write('\u001B[B'); - stdin.write('\u001B[B'); - stdin.write('\r'); - await wait(); - - // API Key type -> Alibaba Cloud ModelStudio Standard API Key (default) - stdin.write('\r'); - await wait(); - - // Region -> Singapore - stdin.write('\u001B[B'); - stdin.write('\r'); - await wait(); - - expect(lastFrame()).toContain( - 'Enter Alibaba Cloud ModelStudio Standard API Key', - ); - expect(lastFrame()).toContain( - 'https://dashscope-intl.aliyuncs.com/compatible-mode/v1', - ); - unmount(); - }); });