vanshg
02/01/2023, 4:27 AMDisposableEffect
. What is the best way to test the invocation of this? Previously I've been using Modifier.testTag(...)
to assert that a certain Composable is displayed, but this Modifier is not available on a DisposableEffect
. To work around it, I tried also adding a Spacer
that has a testTag
set, but this doesn't seem to be working (the assertion that the spacer with the testTag is displayed is false).
How can I test that a DisposableEffect has been invoked?Filip Wiesner
02/01/2023, 8:52 AM