From 55b946a0197b043c284df80829b6968a3daae27f Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Wed, 23 Mar 2022 09:02:33 +0000 Subject: [PATCH] fixing the onboarding sanity test failing - adds tapping the new take me home button within the sanity test --- .../androidTest/java/im/vector/app/ui/robot/OnboardingRobot.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vector/src/androidTest/java/im/vector/app/ui/robot/OnboardingRobot.kt b/vector/src/androidTest/java/im/vector/app/ui/robot/OnboardingRobot.kt index b3bb5172e8..d051488ad7 100644 --- a/vector/src/androidTest/java/im/vector/app/ui/robot/OnboardingRobot.kt +++ b/vector/src/androidTest/java/im/vector/app/ui/robot/OnboardingRobot.kt @@ -21,6 +21,7 @@ import androidx.test.espresso.Espresso.onView import androidx.test.espresso.Espresso.pressBack import androidx.test.espresso.matcher.ViewMatchers.isRoot import androidx.test.espresso.matcher.ViewMatchers.withId +import androidx.test.espresso.matcher.ViewMatchers.withText import com.adevinta.android.barista.assertion.BaristaEnabledAssertions.assertDisabled import com.adevinta.android.barista.assertion.BaristaEnabledAssertions.assertEnabled import com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed @@ -55,6 +56,8 @@ class OnboardingRobot { fun createAccount(userId: String, password: String = "password", homeServerUrl: String = "http://10.0.2.2:8080") { initSession(true, userId, password, homeServerUrl) + waitUntilViewVisible(withText(R.string.ftue_account_created_congratulations_title)) + clickOn(R.string.ftue_account_created_take_me_home) } fun login(userId: String, password: String = "password", homeServerUrl: String = "http://10.0.2.2:8080") {