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?