From 4c5546d163387e7ef111d8c6982347dfb816c6c6 Mon Sep 17 00:00:00 2001 From: Sara Hentzel Date: Wed, 14 Oct 2026 15:44:00 -0500 Subject: [PATCH] Fix AI test to show offline if there is no token --- web/src/components/WSAudioPlayer.hotkeys.test.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/web/src/components/WSAudioPlayer.hotkeys.test.tsx b/web/src/components/WSAudioPlayer.hotkeys.test.tsx index 252beda8..f0dbf39d 100644 --- a/web/src/components/WSAudioPlayer.hotkeys.test.tsx +++ b/web/src/components/WSAudioPlayer.hotkeys.test.tsx @@ -194,8 +194,6 @@ jest.mock('react-redux', () => ({ microphoneDisconnectedFallback: 'The preferred microphone was disconnected. Default microphone selected.', mustBeOnline: 'You must be online to use this feature', - expiredToken: - "Your login token has expired and can't be automatically renewed. Please log out and login again.", getString: (key: string) => key, }), shallowEqual: jest.fn(), @@ -989,10 +987,10 @@ describe('WSAudioPlayer record hotkeys', () => { ); }); - it('shows the token message when AI is skipped with no token', async () => { + it('shows the online message when AI is skipped with no token', async () => { await deliverAiError(new AudioAiError(AudioAiErrorCode.noToken)); expect(mockShowMessage).toHaveBeenCalledWith( - "Your login token has expired and can't be automatically renewed. Please log out and login again.", + 'You must be online to use this feature', 'error' ); });