From ca57f82769b36df3dbd3da696a342c408e711693 Mon Sep 17 00:00:00 2001 From: Mark McLaughlin Date: Tue, 24 Feb 2026 09:42:18 -0800 Subject: [PATCH] test(ui): update tests and snapshots for SessionRetentionWarningDialog --- .../components/SessionRetentionWarningDialog.test.tsx | 2 +- .../SessionRetentionWarningDialog.test.tsx.snap | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/cli/src/ui/components/SessionRetentionWarningDialog.test.tsx b/packages/cli/src/ui/components/SessionRetentionWarningDialog.test.tsx index ec3157fa89..38864eca89 100644 --- a/packages/cli/src/ui/components/SessionRetentionWarningDialog.test.tsx +++ b/packages/cli/src/ui/components/SessionRetentionWarningDialog.test.tsx @@ -38,7 +38,7 @@ describe('SessionRetentionWarningDialog', () => { expect(lastFrame()).toContain( 'introducing a limit on how long chat sessions are stored', ); - expect(lastFrame()).toContain('Keep for 30 days (Recommended)'); + expect(lastFrame()).toContain('Keep for 30 days (recommended)'); expect(lastFrame()).toContain('42 sessions will be deleted'); expect(lastFrame()).toContain('Keep for 120 days'); expect(lastFrame()).toContain('No sessions will be deleted at this time'); diff --git a/packages/cli/src/ui/components/__snapshots__/SessionRetentionWarningDialog.test.tsx.snap b/packages/cli/src/ui/components/__snapshots__/SessionRetentionWarningDialog.test.tsx.snap index 95f1b4760c..1c08a28579 100644 --- a/packages/cli/src/ui/components/__snapshots__/SessionRetentionWarningDialog.test.tsx.snap +++ b/packages/cli/src/ui/components/__snapshots__/SessionRetentionWarningDialog.test.tsx.snap @@ -3,18 +3,18 @@ exports[`SessionRetentionWarningDialog > should match snapshot 1`] = ` "╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ -│ Keep chat history │ +│ Keep chat history │ │ │ -│ To keep your workspace clean, we are introducing a limit on how long chat sessions are stored. │ -│ Please choose a retention period for your existing chats: │ +│ To keep your workspace clean, we‘re introducing a limit on how long chat sessions are stored. │ +│ Choose a retention period for your existing chats: │ │ │ │ │ -│ 1. Keep for 30 days (Recommended) │ +│ 1. Keep for 30 days (recommended) │ │ 123 sessions will be deleted │ │ ● 2. Keep for 120 days │ │ No sessions will be deleted at this time │ │ │ -│ Set a custom limit /settings and change "Keep chat history". │ +│ Set a custom limit in /settings and change "Keep chat history". │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ "