Created
August 27, 2022 09:59
-
-
Save aqua30/71a8f959a7e98c4d026d17e65fbaeea2 to your computer and use it in GitHub Desktop.
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 withInput_as_1_onButtonClick_displayOnTop() { | |
// mimic the user inputting the text | |
composeTestRule.onNodeWithTag("Input").performTextInput("1") | |
// mimic if the user clicked on the button | |
composeTestRule.onNodeWithText("Copy").performClick() | |
// mimic if the user is shown the desired text on UI | |
composeTestRule.onNodeWithTag("Counter Display").assertTextContains("Counter = 1") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment