mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-17 11:25:34 -04:00
Changed file name from MainActivityTest to KiwixMainActivityTest
This commit is contained in:
parent
e548380c4f
commit
a415003b2f
@ -25,7 +25,7 @@ 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.main.MainRobot
|
||||
import org.kiwix.kiwixmobile.main.KiwixMainRobot
|
||||
import org.kiwix.kiwixmobile.main.kiwixMainRobo
|
||||
|
||||
fun intro(func: IntroRobot.() -> Unit) = IntroRobot().applyWithViewHierarchyPrinting(func)
|
||||
@ -49,7 +49,7 @@ class IntroRobot : BaseRobot() {
|
||||
}
|
||||
}
|
||||
|
||||
infix fun clickGetStarted(func: MainRobot.() -> Unit): MainRobot {
|
||||
infix fun clickGetStarted(func: KiwixMainRobot.() -> Unit): KiwixMainRobot {
|
||||
clickOn(getStarted)
|
||||
return kiwixMainRobo(func)
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import org.kiwix.kiwixmobile.utils.StandardActions.openDrawer
|
||||
|
||||
class MainActivityTest {
|
||||
class KiwixMainActivityTest {
|
||||
@Rule
|
||||
@JvmField
|
||||
var activityTestRule = ActivityTestRule(KiwixMainActivity::class.java)
|
@ -25,9 +25,9 @@ import org.kiwix.kiwixmobile.Findable.ViewId
|
||||
import org.kiwix.kiwixmobile.R
|
||||
import org.kiwix.kiwixmobile.testutils.TestUtils.getResourceString
|
||||
|
||||
fun kiwixMainRobo(func: MainRobot.() -> Unit) = MainRobot().apply(func)
|
||||
fun kiwixMainRobo(func: KiwixMainRobot.() -> Unit) = KiwixMainRobot().apply(func)
|
||||
|
||||
class MainRobot : BaseRobot() {
|
||||
class KiwixMainRobot : BaseRobot() {
|
||||
|
||||
init {
|
||||
isVisible(ViewId(R.id.navigation_container))
|
Loading…
x
Reference in New Issue
Block a user