mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-13 19:40:28 -07:00
Co-authored-by: Aashir Javed <Aaxhirrr@users.noreply.github.com> Co-authored-by: Dev Randalpura <devrandalpura@google.com>
This commit is contained in:
@@ -241,6 +241,22 @@ describe('useLoadingIndicator', () => {
|
||||
expect(result.current.currentLoadingPhrase).toContain('Attempt 3/3');
|
||||
});
|
||||
|
||||
it('should not show retry status phrase when idle', async () => {
|
||||
const retryStatus = {
|
||||
model: 'gemini-pro',
|
||||
attempt: 2,
|
||||
maxAttempts: 3,
|
||||
delayMs: 1000,
|
||||
};
|
||||
const { result } = await renderLoadingIndicatorHook(
|
||||
StreamingState.Idle,
|
||||
false,
|
||||
retryStatus,
|
||||
);
|
||||
|
||||
expect(result.current.currentLoadingPhrase).toBeUndefined();
|
||||
});
|
||||
|
||||
it('should hide low-verbosity retry status for early retry attempts', async () => {
|
||||
const retryStatus = {
|
||||
model: 'gemini-pro',
|
||||
|
||||
Reference in New Issue
Block a user