From 4a0963373c855b37e6c6d65bba0a8f84e9467df2 Mon Sep 17 00:00:00 2001 From: Keith Guerin Date: Sat, 7 Feb 2026 23:43:22 -0800 Subject: [PATCH] test: update snapshots and unit tests for UI refinements --- packages/cli/src/ui/components/Composer.test.tsx | 6 +++--- packages/cli/src/ui/components/Footer.test.tsx | 10 ++++------ .../cli/src/ui/components/LoadingIndicator.test.tsx | 8 ++++---- .../ui/components/__snapshots__/Footer.test.tsx.snap | 4 ++-- packages/cli/src/ui/hooks/useLoadingIndicator.test.tsx | 8 ++------ packages/cli/src/ui/hooks/usePhraseCycler.test.tsx | 10 +++++----- 6 files changed, 20 insertions(+), 26 deletions(-) diff --git a/packages/cli/src/ui/components/Composer.test.tsx b/packages/cli/src/ui/components/Composer.test.tsx index 73765dcf04..956130fffe 100644 --- a/packages/cli/src/ui/components/Composer.test.tsx +++ b/packages/cli/src/ui/components/Composer.test.tsx @@ -308,19 +308,19 @@ describe('Composer', () => { expect(output).not.toContain('Should not show'); }); - it('does not render LoadingIndicator when waiting for confirmation', () => { + it('renders LoadingIndicator when waiting for confirmation', () => { const uiState = createMockUIState({ streamingState: StreamingState.WaitingForConfirmation, thought: { subject: 'Confirmation', - description: 'Should not show during confirmation', + description: 'Should show during confirmation', }, }); const { lastFrame } = renderComposer(uiState); const output = lastFrame(); - expect(output).not.toContain('LoadingIndicator'); + expect(output).toContain('LoadingIndicator'); }); it('does not render LoadingIndicator when a tool confirmation is pending', () => { diff --git a/packages/cli/src/ui/components/Footer.test.tsx b/packages/cli/src/ui/components/Footer.test.tsx index 4113060081..cd28462bcd 100644 --- a/packages/cli/src/ui/components/Footer.test.tsx +++ b/packages/cli/src/ui/components/Footer.test.tsx @@ -128,7 +128,7 @@ describe('