Skip to content

Instantly share code, notes, and snippets.

@BorisOsipov
Created August 9, 2021 13:43
Show Gist options
  • Save BorisOsipov/2a23e9e813c03964cd1bbd043cb4c150 to your computer and use it in GitHub Desktop.
Save BorisOsipov/2a23e9e813c03964cd1bbd043cb4c150 to your computer and use it in GitHub Desktop.
@Test
fun shouldPassOnNoInternetScanTest() =
beforeTest {
activityTestRule.launchActivity(null)
// some things with the state
}.afterTest {
// some things with the state
}.run {
step("Open Simple Screen") {
MainScreen {
nextButton {
isVisible()
click()
}
}
}
step("Click button_1 and check button_2") {
SimpleScreen {
button1 {
click()
}
button2 {
isVisible()
}
}
}
step("Click button_2 and check edit") {
SimpleScreen {
button2 {
click()
}
}
}
step("Check all possibilities of edit") {
scenario(
CheckEditScenario()
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment