Skip to content

Instantly share code, notes, and snippets.

@ferPrieto
Created January 11, 2022 20:34
Show Gist options
  • Save ferPrieto/132b4f943c7b151a0e99c3c928906c22 to your computer and use it in GitHub Desktop.
Save ferPrieto/132b4f943c7b151a0e99c3c928906c22 to your computer and use it in GitHub Desktop.
This shows the elements that will be tested, identifying them using finders and semantics API
private val launchesTabItem by lazy {
composeTestRule.onNodeWithText(
"Launches"
)
}
private val launchesListItems by lazy {
composeTestRule.onAllNodesWithContentDescription(
"Item",
substring = true,
useUnmergedTree = true
)
}
private val connectionErrorMessage by lazy {
composeTestRule.onNodeWithText("AN ERROR OCCURRED", useUnmergedTree = true)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment