From 5cc96850af9166e016328ff951709aa077d3c0a0 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Wed, 27 Jul 2022 11:50:14 +0100 Subject: [PATCH] updating font scale access as the activity wait no longer works with the latest changes --- .../app/ui/robot/settings/SettingsPreferencesRobot.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vector/src/androidTest/java/im/vector/app/ui/robot/settings/SettingsPreferencesRobot.kt b/vector/src/androidTest/java/im/vector/app/ui/robot/settings/SettingsPreferencesRobot.kt index bb09ee30f2..67810b6c89 100644 --- a/vector/src/androidTest/java/im/vector/app/ui/robot/settings/SettingsPreferencesRobot.kt +++ b/vector/src/androidTest/java/im/vector/app/ui/robot/settings/SettingsPreferencesRobot.kt @@ -17,6 +17,7 @@ package im.vector.app.ui.robot.settings import androidx.test.espresso.Espresso.pressBack +import androidx.test.espresso.matcher.ViewMatchers.withId import androidx.test.espresso.matcher.ViewMatchers.withText import com.adevinta.android.barista.interaction.BaristaClickInteractions.clickOn import com.adevinta.android.barista.interaction.BaristaDialogInteractions.clickDialogNegativeButton @@ -34,8 +35,7 @@ class SettingsPreferencesRobot { clickOn(R.string.settings_theme) clickDialogNegativeButton() clickOn(R.string.font_size) - waitUntilActivityVisible { - pressBack() - } + waitUntilViewVisible(withId(R.id.fons_scale_recycler)) + pressBack() } }