Skip to content

Instantly share code, notes, and snippets.

@stoefln
Created November 12, 2020 12:26
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 stoefln/45ebe0648bc11983e9fdab462c4b3bcf to your computer and use it in GitHub Desktop.
Save stoefln/45ebe0648bc11983e9fdab462c4b3bcf to your computer and use it in GitHub Desktop.
fun shouldPassOnNoInternetScanTest() =
beforeTest {
activityTestRule.launchActivity(null)
}.afterTest {
// cleanup
}.run {
step("Open Next Screen") {
MainScreen {
nextButton {
isVisible()
click()
}
}
}
step("Click logout button to log out") {
SimpleScreen {
logoutButton {
isVisible()
click()
}
}
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment