-
-
Save eakurnikov/618f8feab2e93b09d943194c050dcd0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object KakaoScreen : Screen<KakaoScreen>() { | |
val title = KTextView { withText(R.string.title1) } | |
val btn = KButton { withId(R.id.button1) } | |
} | |
object KautomatorScreen : UiScreen<KautomatorScreen>() { | |
val title = UiTextView { withText(R.string.title2) } | |
val btn = UiButton { withId(pkgName, R.id.button2) } | |
} | |
@Test | |
fun kaspressoTest() { | |
KakaoScreen { | |
title.isVisible() | |
btn.click() | |
} | |
KautomatorScreen { | |
title.isVisible() | |
btn.click() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment