diff --git a/features/preferences/impl/src/test/kotlin/io/element/android/features/preferences/impl/notifications/NotificationSettingsViewTest.kt b/features/preferences/impl/src/test/kotlin/io/element/android/features/preferences/impl/notifications/NotificationSettingsViewTest.kt index 58a685719a..790a4c7f25 100644 --- a/features/preferences/impl/src/test/kotlin/io/element/android/features/preferences/impl/notifications/NotificationSettingsViewTest.kt +++ b/features/preferences/impl/src/test/kotlin/io/element/android/features/preferences/impl/notifications/NotificationSettingsViewTest.kt @@ -261,7 +261,12 @@ class NotificationSettingsViewTest { ), ) rule.clickOn(R.string.screen_advanced_settings_push_provider_android) - eventsRecorder.assertSingle(NotificationSettingsEvents.ChangePushProvider) + eventsRecorder.assertList( + listOf( + NotificationSettingsEvents.RefreshSystemNotificationsEnabled, + NotificationSettingsEvents.ChangePushProvider, + ) + ) } @Test @@ -275,7 +280,12 @@ class NotificationSettingsViewTest { ), ) rule.onNodeWithText("P2").performClick() - eventsRecorder.assertSingle(NotificationSettingsEvents.SetPushProvider(1)) + eventsRecorder.assertList( + listOf( + NotificationSettingsEvents.RefreshSystemNotificationsEnabled, + NotificationSettingsEvents.SetPushProvider(1), + ) + ) } }