Skip to content

Demonstrates an android espresso bug related to TextInputLayout.setError

Notifications You must be signed in to change notification settings

nverbeek/EspressoBug

Repository files navigation

EspressoBug

Demonstrates an android espresso bug related to TextInputLayout.setError

When an app calls TextInputLayout.setError after a button click in an espresso test the test code will hang indefinitely. I've tracked this down to Tap.java line 170 - if (!MotionEvents.sendUp(uiController, res.down)). The MotionEvents.sendDown prior to this line works fine, but MotionEvents.sendUp never returns.

Commenting out line 84 of MainActivity will cause the test to complete (but fail which would be expected). As written though the test hangs.

About

Demonstrates an android espresso bug related to TextInputLayout.setError

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages