-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Espresso:- IdlingResources must support Databinding #317
Comments
Perhaps this should be reworded as 'DataBinding' requires a custom IdlingResource? Since there is a IR sample for DataBinding that seems to work. Both @slinzner and I looked into this and didn't think it was feasible for Espresso to use Choreographer as an idling resource |
My espresso tests were working fine before I updated to AS 3.6 with
Now, when I do something like this it is not working:
Am I supposed to change anything to work with viewbinding? Seeing this issue especially with Fragments. |
Update to AndroidX Test 1.3.0-beta01
Just to clarify, View binding doesn't have this problem right? |
DataBinding uses different approach to schedule an update, it uses Choreographer.postFrameCallback. So updates are not posted into looper queue and Espresso will not wait for them.
See: https://stackoverflow.com/questions/40703567/how-do-i-make-espresso-wait-until-data-binding-has-updated-the-view-with-the-dat
The text was updated successfully, but these errors were encountered: