You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my testing if I provide ComposeScreen with viewBuilderAction = { hasTestTag(C.Screen.main_screen) } it doesn't work. I tested a bit, and I suspect that it uses wrong hierarchy matchers. If I do
composeTestRule.onNode(
hasTestTag(C.Tag.profile_auth_button).and(
hasParent(
hasTestTag(C.Screen.profile_screen)
)
)
).performClick()
``` then it also doesn't work, but if I change hasParent for hasAnyAncestors it does work.
Maybe I am doing something wrong? My initial attempt was like this
In my testing if I provide ComposeScreen with
viewBuilderAction = { hasTestTag(C.Screen.main_screen) }
it doesn't work. I tested a bit, and I suspect that it uses wrong hierarchy matchers. If I doonComposeScreen(composeTestRule) {
authButton {
assertIsDisplayed()
performClick()
}
}
The text was updated successfully, but these errors were encountered: