mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 20:06:51 +03:00
fixing the onboarding sanity test failing
- adds tapping the new take me home button within the sanity test
This commit is contained in:
parent
951171cb94
commit
55b946a019
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,7 @@ import androidx.test.espresso.Espresso.onView
|
||||||
import androidx.test.espresso.Espresso.pressBack
|
import androidx.test.espresso.Espresso.pressBack
|
||||||
import androidx.test.espresso.matcher.ViewMatchers.isRoot
|
import androidx.test.espresso.matcher.ViewMatchers.isRoot
|
||||||
import androidx.test.espresso.matcher.ViewMatchers.withId
|
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.assertDisabled
|
||||||
import com.adevinta.android.barista.assertion.BaristaEnabledAssertions.assertEnabled
|
import com.adevinta.android.barista.assertion.BaristaEnabledAssertions.assertEnabled
|
||||||
import com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed
|
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") {
|
fun createAccount(userId: String, password: String = "password", homeServerUrl: String = "http://10.0.2.2:8080") {
|
||||||
initSession(true, userId, password, homeServerUrl)
|
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") {
|
fun login(userId: String, password: String = "password", homeServerUrl: String = "http://10.0.2.2:8080") {
|
||||||
|
|
Loading…
Reference in a new issue