Davide Giuseppe Farella
10/03/2020, 11:13 AMIconButton
like following
IconButton(modifier = Modifier.padding(16.dp).testTag(WatchlistButtonTestTag), onClick = onClick) {
if (inWatchlist) {
Image(asset = vectorResource(id = R.drawable.ic_bookmark_color))
} else {
Icon(asset = vectorResource(id = R.drawable.ic_bookmark_bw))
}
}
I get the button from test with rule.onNodeWithTag(WatchlistButtonTestTag)
Now I wanna verify its inner Drawable.
What is the best way?