I tried adding Macrobenchmark in a CMP project And...
# compose
v
I tried adding Macrobenchmark in a CMP project And i enabled
testTagAsResourceId
on the Android side and applied
Modifier.testTag()
to the composable i want to test But no matter what i use testTag or contentDescription, the
Copy code
device.findObject(By.res(..))
Is always null and test always fails
a
can you try calling
testTagsAsResourceId = true
under modifier.semantics{}
v
Yes i have called it in the root composable which is in androidMain