Thread
#compose
    a

    Arun

    1 year ago
    According to doc:
    @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

    allan.conda

    1 year ago
    It should be available from alpha07 I think
    before it was forced set to true afair
    I could be wrong
    a

    Arun

    1 year ago
    @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

    allan.conda

    1 year ago
    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

    Arun

    1 year ago
    Oh, thanks for the info. Will look at it 👍
    Thanks @allan.conda. Tests are working! 🙂
    a

    allan.conda

    1 year ago
    nice