Skip to content

Commit de1d447

Browse files
fix UTests
1 parent e4a5912 commit de1d447

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

redisinsight/ui/src/components/oauth/oauth-jobs/OAuthJobs.spec.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ describe('OAuthJobs', () => {
228228

229229
const expectedActions = [
230230
logoutUser(),
231+
setSSOFlow(),
231232
addInfiniteNotification(INFINITE_MESSAGES.DATABASE_EXISTS()),
232233
setSSOFlow(),
233234
setSocialDialogState(null),

redisinsight/ui/src/services/tests/apiService.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ApiEndpoints } from 'uiSrc/constants'
55
import { cleanup, mockedStore } from 'uiSrc/utils/test-utils'
66
import { logoutUser } from 'uiSrc/slices/oauth/cloud'
77
import { store } from 'uiSrc/slices/store'
8+
import { setSSOFlow } from 'uiSrc/slices/instances/cloud'
89

910
describe('requestInterceptor', () => {
1011
it('should properly set db-index to headers', () => {
@@ -54,7 +55,7 @@ describe('cloudAuthInterceptor', () => {
5455
try {
5556
await cloudAuthInterceptor(response)
5657
} catch {
57-
expect(mockedTestStore.getActions()).toEqual([logoutUser()])
58+
expect(mockedTestStore.getActions()).toEqual([logoutUser(), setSSOFlow()])
5859
}
5960
})
6061

0 commit comments

Comments
 (0)