diff --git a/__tests__/ui/screens/InstallPluginsScreen.test.tsx b/__tests__/ui/screens/InstallPluginsScreen.test.tsx index c22b4e6..0ca79bb 100644 --- a/__tests__/ui/screens/InstallPluginsScreen.test.tsx +++ b/__tests__/ui/screens/InstallPluginsScreen.test.tsx @@ -49,13 +49,13 @@ describe('InstallPluginsScreen', () => { }); }); - it('advances to Authenticate on Skip', async () => { + it('advances to ConnectTools on Skip', async () => { using sut = renderApp({ screen: ScreenId.InstallPlugins }); sut.stdin.write(ARROW_DOWN + ARROW_DOWN + ARROW_DOWN + ENTER); await waitFor(() => { - expect(sut.lastFrame()).toContain('Sign in to Confidence'); + expect(sut.lastFrame()).toContain('Connect your AI to Confidence'); }); }); @@ -88,7 +88,7 @@ describe('InstallPluginsScreen', () => { sut.stdin.write(ARROW_DOWN + ENTER); await waitFor(() => { - expect(sut.lastFrame()).toContain('Sign in to Confidence'); + expect(sut.lastFrame()).toContain('Connect your AI to Confidence'); }); }); @@ -106,7 +106,7 @@ describe('InstallPluginsScreen', () => { sut.stdin.write(ENTER); await waitFor(() => { - expect(sut.lastFrame()).toContain('Sign in to Confidence'); + expect(sut.lastFrame()).toContain('Connect your AI to Confidence'); }); }); diff --git a/src/ui/tui/screens/install-plugins/InstallPluginsScreen.tsx b/src/ui/tui/screens/install-plugins/InstallPluginsScreen.tsx index c9f8092..02e86a8 100644 --- a/src/ui/tui/screens/install-plugins/InstallPluginsScreen.tsx +++ b/src/ui/tui/screens/install-plugins/InstallPluginsScreen.tsx @@ -161,10 +161,14 @@ export function InstallPluginsScreen() { { label: 'Skip', value: 'skip' }, ]} onSelect={(value) => { - if (value === 'skip') { - track(te.pluginSkippedAfterError()); - log(pluginSkippedAfterError(error)); + if (value === 'retry') { + const ide = $session.get().ide; + if (ide) selectIde(ide); + return; } + + track(te.pluginSkippedAfterError()); + log(pluginSkippedAfterError(error)); navigate.to('next'); }} />