Skip to content

Instantly share code, notes, and snippets.

@ferPrieto
Created January 4, 2022 12:13
Show Gist options
  • Save ferPrieto/0d8478764a7861d3730236e479f3fd47 to your computer and use it in GitHub Desktop.
Save ferPrieto/0d8478764a7861d3730236e479f3fd47 to your computer and use it in GitHub Desktop.
This is an example of how to identify a node by Semantics: ContentDescription
private val dialogFilterButton by lazy {
composeTestRule.onNodeWithContentDescription("Filter Button")
}
@Test
fun elementsVisibilityAfterOpeningTheMainScreen() {
setMainContent()
dialogFilterButton.assertIsDisplayed()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment