Fix test, NotificationSettingsEvents.RefreshSystemNotificationsEnabled is emitting first.
This commit is contained in:
parent
0ba595ff1b
commit
ea3a7855b3
1 changed files with 12 additions and 2 deletions
|
|
@ -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),
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue