File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
features/roomlist/impl/src/test/kotlin/io/element/android/features/roomlist/impl Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,17 @@ class RoomListPresenterTest {
268268 encryptionService.emitRecoveryState(RecoveryState .INCOMPLETE )
269269 val nextState = awaitItem()
270270 assertThat(nextState.contentAsRooms().securityBannerState).isEqualTo(SecurityBannerState .RecoveryKeyConfirmation )
271+ // Also check other states
272+ encryptionService.emitRecoveryState(RecoveryState .DISABLED )
273+ assertThat(awaitItem().contentAsRooms().securityBannerState).isEqualTo(SecurityBannerState .SetUpRecovery )
274+ encryptionService.emitRecoveryState(RecoveryState .WAITING_FOR_SYNC )
275+ assertThat(awaitItem().contentAsRooms().securityBannerState).isEqualTo(SecurityBannerState .None )
276+ encryptionService.emitRecoveryState(RecoveryState .DISABLED )
277+ assertThat(awaitItem().contentAsRooms().securityBannerState).isEqualTo(SecurityBannerState .SetUpRecovery )
278+ encryptionService.emitRecoveryState(RecoveryState .ENABLED )
279+ assertThat(awaitItem().contentAsRooms().securityBannerState).isEqualTo(SecurityBannerState .None )
280+ encryptionService.emitRecoveryState(RecoveryState .DISABLED )
281+ assertThat(awaitItem().contentAsRooms().securityBannerState).isEqualTo(SecurityBannerState .SetUpRecovery )
271282 nextState.eventSink(RoomListEvents .DismissRecoveryKeyPrompt )
272283 val finalState = awaitItem()
273284 assertThat(finalState.contentAsRooms().securityBannerState).isEqualTo(SecurityBannerState .None )
You can’t perform that action at this time.
0 commit comments