Fix test, NotificationSettingsEvents.RefreshSystemNotificationsEnabled is emitting first.

This commit is contained in:
Benoit Marty
2024-05-28 09:25:29 +02:00
parent 7bdf8c6c17
commit 69ecb40cdd

View File

@@ -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),
)
)
}
}