File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
app/src/androidTest/java/com/protonvpn Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ import com.protonvpn.base.BaseRobot
2424import com.protonvpn.base.BaseVerify
2525import com.protonvpn.data.Timeouts
2626import me.proton.test.fusion.Fusion.node
27+ import okhttp3.internal.wait
28+ import java.time.Duration
2729
2830class OnboardingRobot : BaseRobot () {
2931
@@ -39,7 +41,7 @@ class OnboardingRobot : BaseRobot() {
3941
4042 class Verify : BaseVerify () {
4143 fun welcomeScreenIsDisplayed () {
42- node.withText(R .string.onboarding_welcome_title).assertIsDisplayed()
44+ node.withText(R .string.onboarding_welcome_title).await( Timeouts . LONG ) { assertIsDisplayed() }
4345 }
4446
4547 fun onboardingPaymentIdDisplayed () {
Original file line number Diff line number Diff line change @@ -40,12 +40,15 @@ import me.proton.core.auth.test.robot.signup.SignUpRobot
4040import me.proton.core.auth.test.rule.AcceptExternalRule
4141import me.proton.core.network.domain.client.ExtraHeaderProvider
4242import me.proton.core.util.kotlin.random
43+ import me.proton.test.fusion.Fusion
4344import me.proton.test.fusion.FusionConfig
4445import org.junit.Before
4546import org.junit.Rule
4647import org.junit.Test
4748import org.junit.runner.RunWith
4849import javax.inject.Inject
50+ import kotlin.time.Duration.Companion.milliseconds
51+ import me.proton.core.auth.presentation.R
4952
5053@LargeTest
5154@RunWith(AndroidJUnit4 ::class )
@@ -82,6 +85,7 @@ class SignUpTests : MinimalSignUpExternalTests {
8285 override val isCongratsDisplayed = false
8386
8487 @Test
88+ // TODO Migrate this test to core
8589 override fun signupSwitchToInternalAccountHappyPath () {
8690 val testUsername = " test-${String .random()} "
8791
You can’t perform that action at this time.
0 commit comments