#1593 Move CI from Travis to GitHub Action - restructure IntroActivityTest

This commit is contained in:
Sean Mac Gillicuddy 2019-12-20 11:17:59 +00:00
parent e771541767
commit 1fceb9928a
2 changed files with 2 additions and 10 deletions

View File

@ -31,7 +31,6 @@ class IntroActivityTest : BaseActivityTest<IntroActivity>() {
fun viewIsSwipeableAndNavigatesToMain() {
intro {
swipeLeft()
swipeRight()
} clickGetStarted { }
}
}

View File

@ -25,7 +25,6 @@ import org.kiwix.kiwixmobile.Findable.StringId.TextId
import org.kiwix.kiwixmobile.Findable.ViewId
import org.kiwix.kiwixmobile.LONG_WAIT
import org.kiwix.kiwixmobile.R
import org.kiwix.kiwixmobile.VERY_LONG_WAIT
import org.kiwix.kiwixmobile.main.MainRobot
import org.kiwix.kiwixmobile.main.main
@ -38,6 +37,8 @@ class IntroRobot : BaseRobot() {
init {
isVisible(getStarted, LONG_WAIT)
isVisible(TextId(R.string.welcome_to_the_family))
isVisible(TextId(R.string.human_kind_knowledge))
}
fun swipeLeft() {
@ -48,14 +49,6 @@ class IntroRobot : BaseRobot() {
}
}
fun swipeRight() {
attempt(10) {
isVisible(viewPager).swipeRight()
isVisible(TextId(R.string.welcome_to_the_family), VERY_LONG_WAIT)
isVisible(TextId(R.string.human_kind_knowledge), VERY_LONG_WAIT)
}
}
infix fun clickGetStarted(func: MainRobot.() -> Unit): MainRobot {
clickOn(getStarted)
return main(func)