Add test for the notification settings.
This commit is contained in:
parent
55bac9ba0f
commit
d1e2a903b4
@ -17,6 +17,7 @@
|
||||
package im.vector.app.ui.robot.settings
|
||||
|
||||
import androidx.test.espresso.Espresso.pressBack
|
||||
import com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed
|
||||
import com.adevinta.android.barista.interaction.BaristaClickInteractions.clickOn
|
||||
import im.vector.app.R
|
||||
import im.vector.app.espresso.tools.clickOnPreference
|
||||
@ -41,6 +42,15 @@ class SettingsNotificationsRobot {
|
||||
clickOn(R.string.settings_call_notifications_preferences)
|
||||
pressBack()
|
||||
*/
|
||||
// Email notification. No Emails are configured so we show go to the screen to add email
|
||||
clickOnPreference(R.string.settings_notification_emails_no_emails)
|
||||
assertDisplayed(R.string.settings_emails_and_phone_numbers_title)
|
||||
pressBack()
|
||||
|
||||
// Display the notification method change dialog
|
||||
clickOnPreference(R.string.settings_notification_method)
|
||||
pressBack()
|
||||
|
||||
clickOnPreference(R.string.settings_notification_troubleshoot)
|
||||
// Give time for the tests to perform
|
||||
Thread.sleep(12_000)
|
||||
|
@ -3073,7 +3073,7 @@
|
||||
<string name="unifiedpush_getdistributors_dialog_title">Choose how to receive notifications</string>
|
||||
<string name="unifiedpush_distributor_fcm_fallback">Google Services</string>
|
||||
<string name="unifiedpush_distributor_background_sync">Background synchronization</string>
|
||||
<string name="settings_unifiedpush_reregister">Notification method</string>
|
||||
<string name="settings_notification_method">Notification method</string>
|
||||
<string name="settings_troubleshoot_test_distributors_title">Available methods</string>
|
||||
<string name="settings_troubleshoot_test_distributors_gplay">No other method than Google Play Service found.</string>
|
||||
<string name="settings_troubleshoot_test_distributors_fdroid">No other method than background synchronization found.</string>
|
||||
|
@ -55,7 +55,7 @@
|
||||
android:dependency="SETTINGS_ENABLE_THIS_DEVICE_PREFERENCE_KEY"
|
||||
android:key="SETTINGS_UNIFIED_PUSH_RE_REGISTER_KEY"
|
||||
android:persistent="false"
|
||||
android:title="@string/settings_unifiedpush_reregister" />
|
||||
android:title="@string/settings_notification_method" />
|
||||
|
||||
<!-- For API < 26 -->
|
||||
<im.vector.app.core.preference.VectorPreference
|
||||
|
Loading…
x
Reference in New Issue
Block a user