Skip to content

Instantly share code, notes, and snippets.

@eakurnikov
Created June 14, 2021 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eakurnikov/618f8feab2e93b09d943194c050dcd0d to your computer and use it in GitHub Desktop.
Save eakurnikov/618f8feab2e93b09d943194c050dcd0d to your computer and use it in GitHub Desktop.
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