Fixed
Status Update
Comments
nk...@google.com <nk...@google.com>
nk...@google.com <nk...@google.com> #2
I have also seen this issue, careful analysis has shown it appears to be related to the canary version of the caf_receiver framework.
In debug mode you will see: Load failed: cast.o.media.Il.create is not a function
This function appears to be missing inhttps://www.gstatic.com/cast/sdk/libs/caf_receiver/canary/cast_receiver_framework.js , the code in the non-canary framework, located at https://www.gstatic.com/cast/sdk/libs/caf_receiver/v3/cast_receiver_framework.js doesn't have this issue.
In debug mode you will see: Load failed: cast.o.media.Il.create is not a function
This function appears to be missing in
Description
Version used: 3.0.1
What steps will reproduce the problem?
1. register CountingIdlingResource in IdlingRegistry.getInstance().register()
2. launch Activity in test which performs some async operation (in worker thread which is monitored by CountingIdlingResource registered in previous step )
3. dont't use any of Espresso.onView, onData, registerIdlingResources
4. use Espresso.onIdle to check something not related with UI which should happen after async operation
How are you running your tests (via Android Studio, Gradle, adb, etc.)?
Android Studio
What is the expected output? What do you see instead?
Expected: test passed
Actual: test fail because onIdle does not wait for CountingIdlingResource
Reason:
Espresso registers IdlingResource's from IdlingRegistry to IdlingResourceRegistry by nvoking IdlingResourceRegistry.sync method. It does not invoke it in onIdle.
Everything works as expected if before onIdle there is Espresso.onView call.