UI Tests
Each key has a tag associated with it that can identify it when running Compose UI tests, it wraps the NavigationNode's Composable with a Modifier.tag()
.
To check whether a screen is visible you can check if its tag is being displayed, this is handy when running UI tests for a flow of screens.
And the tag itself can be overriden, for example if we have multiple instances of the same key differentiated by some id we can override the tag in the key:
Then we will be able to test different instances of that key:
Last updated