mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-10 22:21:22 -07:00
fix(ui): Fix and unskip InputPrompt tests (#11700)
This commit is contained in:
@@ -1581,8 +1581,9 @@ describe('InputPrompt', () => {
|
|||||||
await vi.runAllTimersAsync();
|
await vi.runAllTimersAsync();
|
||||||
|
|
||||||
// Simulate a paste operation (this should set the paste protection)
|
// Simulate a paste operation (this should set the paste protection)
|
||||||
stdin.write(`\x1b[200~pasted content\x1b[201~`);
|
act(() => {
|
||||||
await vi.runAllTimersAsync();
|
stdin.write(`\x1b[200~pasted content\x1b[201~`);
|
||||||
|
});
|
||||||
|
|
||||||
// Simulate an Enter key press immediately after paste
|
// Simulate an Enter key press immediately after paste
|
||||||
stdin.write('\r');
|
stdin.write('\r');
|
||||||
@@ -2073,7 +2074,7 @@ describe('InputPrompt', () => {
|
|||||||
unmount();
|
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;
|
props.shellModeActive = false;
|
||||||
const longValue = 'l'.repeat(200);
|
const longValue = 'l'.repeat(200);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user