Alexandru Gheorghe
06/26/2024, 10:36 AMtestTag doesn't make them findable in instrumentation tests. See error and more details in 🧵Alexandru Gheorghe
06/26/2024, 10:41 AMjava.lang.AssertionError: Failed: assertExists.
Reason: Expected exactly '1' node but could not find any node that satisfies: (TestTag = 'string')
The composable is passed as content parameter (content: @Composable () -> Unit) to another composable. The code is of the form:
ParentComposable(
<parameters>,
content = {
when (uiState) {
is UiState.Loading -> {
LoadingScreen(
modifier =
Modifier.testTag("string")
)
}
}
}
)Alexandru Gheorghe
06/26/2024, 10:42 AMLoadingScreen composable fails to be found. I tried the execution of assertion with useUnmergedTree set to true but that fails too.Alexandru Gheorghe
06/26/2024, 2:03 PMAtul Gupta
08/17/2024, 4:01 PMunmerged = true