Skip to content

Instantly share code, notes, and snippets.

@JoseAlcerreca
Created April 12, 2022 09:30
Show Gist options
  • Save JoseAlcerreca/230404ee9963c9328a84adb17f7e7c63 to your computer and use it in GitHub Desktop.
Save JoseAlcerreca/230404ee9963c9328a84adb17f7e7c63 to your computer and use it in GitHub Desktop.
// Click on a button
composeTestRule.onNodeWithText("Continue").performClick()
// Wait until there's one element with a "Welcome" text
composeTestRule.waitUntil {
composeTestRule
.onAllNodesWithText("Welcome")
.fetchSemanticsNodes().size == 1
}
// Very state of the UI
composeTestRule.onNodeWithText("John").assertExists()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment