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
24
24
import com.protonvpn.base.BaseVerify
25
25
import com.protonvpn.data.Timeouts
26
26
import me.proton.test.fusion.Fusion.node
27
+ import okhttp3.internal.wait
28
+ import java.time.Duration
27
29
28
30
class OnboardingRobot : BaseRobot () {
29
31
@@ -39,7 +41,7 @@ class OnboardingRobot : BaseRobot() {
39
41
40
42
class Verify : BaseVerify () {
41
43
fun welcomeScreenIsDisplayed () {
42
- node.withText(R .string.onboarding_welcome_title).assertIsDisplayed()
44
+ node.withText(R .string.onboarding_welcome_title).await( Timeouts . LONG ) { assertIsDisplayed() }
43
45
}
44
46
45
47
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
40
40
import me.proton.core.auth.test.rule.AcceptExternalRule
41
41
import me.proton.core.network.domain.client.ExtraHeaderProvider
42
42
import me.proton.core.util.kotlin.random
43
+ import me.proton.test.fusion.Fusion
43
44
import me.proton.test.fusion.FusionConfig
44
45
import org.junit.Before
45
46
import org.junit.Rule
46
47
import org.junit.Test
47
48
import org.junit.runner.RunWith
48
49
import javax.inject.Inject
50
+ import kotlin.time.Duration.Companion.milliseconds
51
+ import me.proton.core.auth.presentation.R
49
52
50
53
@LargeTest
51
54
@RunWith(AndroidJUnit4 ::class )
@@ -82,6 +85,7 @@ class SignUpTests : MinimalSignUpExternalTests {
82
85
override val isCongratsDisplayed = false
83
86
84
87
@Test
88
+ // TODO Migrate this test to core
85
89
override fun signupSwitchToInternalAccountHappyPath () {
86
90
val testUsername = " test-${String .random()} "
87
91
You can’t perform that action at this time.
0 commit comments