Created
September 15, 2021 16:05
-
-
Save DmytroShuba/d977d7aba48c96b379d6fd61555d71f7 to your computer and use it in GitHub Desktop.
How to test Jetpack Compose - Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
fun testButtonClick() { | |
val button = composeTestRule.onNode(hasTestTag("yourTestTag"), useUnmergedTree = true) | |
button.assertIsDisplayed() | |
button.performClick() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment