How to assert that animation is running in Robolectric test

60 Views Asked by At

I want to assert that at a certain state, some view has animation running. I try to use shadowOf(mainLooper().idleFor(3, TimeUnit.SECONDS) to advance to that state when the animation takes 60 seconds to finish. But that line of code actually runs until the animation finishes. What else can I do?

0

There are 0 best solutions below