kagomez
05/11/2020, 7:22 PMButton(onClick = { state.counter++ }, modifier = Modifier.tag("testTag"))
but on my UiTests the method findByTag is not recognizing the button, any insights on this?Adam Powell
05/11/2020, 8:21 PMfindByTag
that returns a View
it won't work with compose; different kinds of tags attached to different kinds of objects 🙂Mihai Popa
05/11/2020, 8:29 PMTestTag
instead for testing, Modifier.tag
is a mechanism used by layouts in a different context. We should probably clean this up 🙂Adam Powell
05/11/2020, 8:32 PMkagomez
05/11/2020, 10:28 PM@Composable fun TestTag(
tag: "acceptButton",
children: acceptButton()
): Unit
?? is like that how it is supposed to work?