mirror of
https://github.com/stablyai/orca.git
synced 2026-10-18 08:03:22 +00:00
test(codex): lock restart notice actions
This commit is contained in:
@@ -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'])
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user