Fix test, NotificationSettingsEvents.RefreshSystemNotificationsEnabled is emitting first.
This commit is contained in:
parent
7bdf8c6c17
commit
69ecb40cdd
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)
|
rule.clickOn(R.string.screen_advanced_settings_push_provider_android)
|
||||||
eventsRecorder.assertSingle(NotificationSettingsEvents.ChangePushProvider)
|
eventsRecorder.assertList(
|
||||||
|
listOf(
|
||||||
|
NotificationSettingsEvents.RefreshSystemNotificationsEnabled,
|
||||||
|
NotificationSettingsEvents.ChangePushProvider,
|
||||||
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
@ -275,7 +280,12 @@ class NotificationSettingsViewTest {
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
rule.onNodeWithText("P2").performClick()
|
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