Created
July 17, 2023 14:32
-
-
Save zurche/876313ee9d25d648260a359b6b5e3dbe to your computer and use it in GitHub Desktop.
Full 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 whenFavouriteIsTrueThenFilledHeartIconIsDisplayed() { | |
val isFavourite = true | |
composeTestRule.setContent { | |
ClothingAppTDDTheme { | |
FavouriteButton(isFavourite) | |
} | |
} | |
composeTestRule.onNodeWithContentDescription("Filled Heart Icon").assertIsDisplayed() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment