mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Fix test, NotificationSettingsEvents.RefreshSystemNotificationsEnabled is emitting first.
This commit is contained in:
+12
-2
@@ -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),
|
||||||
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user