From 5ecb0cf2f55bd3914e4fd4ebde315d74f22d0c1d Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Mon, 20 Jul 2026 14:53:48 -0700 Subject: [PATCH] test(codex): lock restart notice actions --- src/renderer/src/components/codex-restart-chip.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/components/codex-restart-chip.test.ts b/src/renderer/src/components/codex-restart-chip.test.ts index af542372bdd..468bb7c58df 100644 --- a/src/renderer/src/components/codex-restart-chip.test.ts +++ b/src/renderer/src/components/codex-restart-chip.test.ts @@ -92,7 +92,7 @@ describe('CodexRestartChip helpers', () => { expect(clearCodexRestartNotice).toHaveBeenCalledTimes(2) }) - it('renders a stale Codex restart notice without an external-store update loop', async () => { + it('renders only account-resolution actions without an external-store update loop', async () => { useAppStore.setState({ tabsByWorktree: { 'worktree-1': [ @@ -124,5 +124,8 @@ describe('CodexRestartChip helpers', () => { }) expect(container.textContent).toContain('Codex is still signed in as old@example.com') + expect( + Array.from(container.querySelectorAll('button'), (button) => button.textContent?.trim()) + ).toEqual(['Keep old account', 'Restart']) }) })