-
Notifications
You must be signed in to change notification settings - Fork 83
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
Instrumentation tests #19
Comments
If it doesn't meet the constraint |
It's visible, but apparently it does not support any input methods. |
The view itself is just a view group with an EditText inside which it delegates focus to. It doesn't accept input directly so that might be the issue. |
So would it be possible to expose the EditText somehow so this view can be used in instrumentation tests? |
I'm testing using a work-around now where I simply set the text in an observable and do the check when the observable has completed (Kotlin code)
|
How can I do instrumentation tests using for instance Espresso and hamcrest view matchers if the PinEntry view does not support any input?
Caused by: java.lang.RuntimeException: Action will not be performed because the target view does not match one or more of the following constraints: ((is displayed on the screen to the user) and (supports input methods or is assignable from class: class android.widget.SearchView)) Target view: "PinEntryView{id=2131427464, res-name=pin_entry, visibility=VISIBLE, width=570, height=120, has-focus=true, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, root-is-layout-requested=false, has-input-connection=false, x=207.0, y=154.0, child-count=5}" at android.support.test.espresso.ViewInteraction$1.run(ViewInteraction.java:138)
The text was updated successfully, but these errors were encountered: