According to doc: ```@get:Rule val composeTestRule...
# compose
a
According to doc:
Copy code
@get:Rule
val composeTestRule =
  AndroidComposeTestRule<MyActivity>(disableTransitions = true)
However, there’s no such parameter
disableTransitions
. Is there any alternative way to disable animations and transitions while testing?
a
It should be available from alpha07 I think
before it was forced set to true afair
I could be wrong
a
@allan.conda I’m currently on alpha07 and I still don’t see any such parameter. Also while testing, I can clearly see Snackbars animating and tests failing.
a
Transitions can no longer be disabled through AndroidComposeTestRule.
You now have to manually add a DisableTransitionsTestRule if you
absolutely need to disable them. For example, ComposeBenchmarkRule
still disables transitions.
since alpha06
a
Oh, thanks for the info. Will look at it 👍
Thanks @allan.conda. Tests are working! 🙂
a
nice