Issue
I have a bunch of EditTexts, and each one is supposed to focus on the next when something is typed into them. My test checks that this happens:
onView(withId(R.id.textBox1)).perform(typeText("1"));
onView(withId(R.id.textBox2)).check(matches(hasFocus()));
When I run the app by clicking 'run', it fails saying hasFocus
wasn't true. Why is this?
Solution
I switched my SwiftKey keyboard back to the default keyboard on my phone, and now the test passes.
Answered By - Questioner
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.