Created
January 13, 2022 21:19
-
-
Save ferPrieto/b1ff9f3cbe29da20cd54225bc71e87f0 to your computer and use it in GitHub Desktop.
For this demonstration, the dispatcher initialisation and content setup (composeTestRule.setContent) was omitted for simplicity
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 elementsVisibilityAfterOpeningTheScreen() { | |
launchesScreenRobot(composeTestRule) { | |
clickOnLaunchesTab() | |
initialElementsShowed() | |
} | |
} | |
@Test | |
fun elementsVisibilityAfterOpeningTheScreen() { | |
composeTestRule.apply { | |
onNodeWithText("Launches").performClick() | |
onNodeWithContentDescription( | |
"Launches Animation", | |
useUnmergedTree = true | |
).assertIsDisplayed() | |
onNodeWithContentDescription("Filter Button").assertIsDisplayed() | |
onNodeWithText("LAUNCHES").assertIsDisplayed() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment