mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 20:14:44 -07:00
fix(ui): Clear input prompt on Escape key press (#13335)
This commit is contained in:
@@ -1050,7 +1050,7 @@ describe('useGeminiStream', () => {
|
||||
|
||||
simulateEscapeKeyPress();
|
||||
|
||||
expect(cancelSubmitSpy).toHaveBeenCalled();
|
||||
expect(cancelSubmitSpy).toHaveBeenCalledWith(false);
|
||||
});
|
||||
|
||||
it('should call setShellInputFocused(false) when escape is pressed', async () => {
|
||||
@@ -1968,7 +1968,7 @@ describe('useGeminiStream', () => {
|
||||
|
||||
// Check that onCancelSubmit was called
|
||||
await waitFor(() => {
|
||||
expect(onCancelSubmitSpy).toHaveBeenCalled();
|
||||
expect(onCancelSubmitSpy).toHaveBeenCalledWith(true);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user