Changed file name from MainActivityTest to KiwixMainActivityTest

This commit is contained in:
s-ayush2903 2020-10-12 05:00:20 +05:30
parent e548380c4f
commit a415003b2f
No known key found for this signature in database
GPG Key ID: B4341DD08B2371CB
3 changed files with 5 additions and 5 deletions

View File

@ -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)
}

View File

@ -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)

View File

@ -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))