taking the use case screen into account when accessing the sign up flows in the sanity tests

This commit is contained in:
Adam Brown 2022-02-01 13:31:21 +00:00
parent 9b3af7cfc9
commit 63a937c096

View File

@ -40,8 +40,11 @@ class OnboardingRobot {
private fun crawlGetStarted() { private fun crawlGetStarted() {
clickOn(R.id.loginSplashSubmit) clickOn(R.id.loginSplashSubmit)
assertDisplayed(R.id.useCaseHeaderTitle, R.string.ftue_auth_use_case_title)
clickOn(R.id.useCaseOptionOne)
OnboardingServersRobot().crawlSignUp() OnboardingServersRobot().crawlSignUp()
pressBack() pressBack()
pressBack()
} }
private fun crawlAlreadyHaveAccount() { private fun crawlAlreadyHaveAccount() {
@ -66,6 +69,7 @@ class OnboardingRobot {
assertDisplayed(R.id.loginSplashSubmit, R.string.login_splash_create_account) assertDisplayed(R.id.loginSplashSubmit, R.string.login_splash_create_account)
if (createAccount) { if (createAccount) {
clickOn(R.id.loginSplashSubmit) clickOn(R.id.loginSplashSubmit)
clickOn(R.id.useCaseOptionOne)
} else { } else {
clickOn(R.id.loginSplashAlreadyHaveAccount) clickOn(R.id.loginSplashAlreadyHaveAccount)
} }