From 2ede47d5ee30f815edb1ba41862a8b03c52c7fff Mon Sep 17 00:00:00 2001 From: Sandy Tao Date: Wed, 22 Oct 2025 14:59:10 -0700 Subject: [PATCH] fix(ui): Fix and unskip InputPrompt tests (#11700) --- packages/cli/src/ui/components/InputPrompt.test.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/ui/components/InputPrompt.test.tsx b/packages/cli/src/ui/components/InputPrompt.test.tsx index 4055c2f78c..0fe0a17eea 100644 --- a/packages/cli/src/ui/components/InputPrompt.test.tsx +++ b/packages/cli/src/ui/components/InputPrompt.test.tsx @@ -1581,8 +1581,9 @@ describe('InputPrompt', () => { await vi.runAllTimersAsync(); // Simulate a paste operation (this should set the paste protection) - stdin.write(`\x1b[200~pasted content\x1b[201~`); - await vi.runAllTimersAsync(); + act(() => { + stdin.write(`\x1b[200~pasted content\x1b[201~`); + }); // Simulate an Enter key press immediately after paste stdin.write('\r'); @@ -2073,7 +2074,7 @@ describe('InputPrompt', () => { unmount(); }); - it.skip('expands and collapses long suggestion via Right/Left arrows', async () => { + it('expands and collapses long suggestion via Right/Left arrows', async () => { props.shellModeActive = false; const longValue = 'l'.repeat(200);