mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-24 05:04:50 -04:00
#1593 Move CI from Travis to GitHub Action - restructure IntroActivityTest
This commit is contained in:
parent
e771541767
commit
1fceb9928a
@ -31,7 +31,6 @@ class IntroActivityTest : BaseActivityTest<IntroActivity>() {
|
|||||||
fun viewIsSwipeableAndNavigatesToMain() {
|
fun viewIsSwipeableAndNavigatesToMain() {
|
||||||
intro {
|
intro {
|
||||||
swipeLeft()
|
swipeLeft()
|
||||||
swipeRight()
|
|
||||||
} clickGetStarted { }
|
} clickGetStarted { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,6 @@ import org.kiwix.kiwixmobile.Findable.StringId.TextId
|
|||||||
import org.kiwix.kiwixmobile.Findable.ViewId
|
import org.kiwix.kiwixmobile.Findable.ViewId
|
||||||
import org.kiwix.kiwixmobile.LONG_WAIT
|
import org.kiwix.kiwixmobile.LONG_WAIT
|
||||||
import org.kiwix.kiwixmobile.R
|
import org.kiwix.kiwixmobile.R
|
||||||
import org.kiwix.kiwixmobile.VERY_LONG_WAIT
|
|
||||||
import org.kiwix.kiwixmobile.main.MainRobot
|
import org.kiwix.kiwixmobile.main.MainRobot
|
||||||
import org.kiwix.kiwixmobile.main.main
|
import org.kiwix.kiwixmobile.main.main
|
||||||
|
|
||||||
@ -38,6 +37,8 @@ class IntroRobot : BaseRobot() {
|
|||||||
|
|
||||||
init {
|
init {
|
||||||
isVisible(getStarted, LONG_WAIT)
|
isVisible(getStarted, LONG_WAIT)
|
||||||
|
isVisible(TextId(R.string.welcome_to_the_family))
|
||||||
|
isVisible(TextId(R.string.human_kind_knowledge))
|
||||||
}
|
}
|
||||||
|
|
||||||
fun swipeLeft() {
|
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 {
|
infix fun clickGetStarted(func: MainRobot.() -> Unit): MainRobot {
|
||||||
clickOn(getStarted)
|
clickOn(getStarted)
|
||||||
return main(func)
|
return main(func)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user