Skip to content

Commit

Permalink
Add informational comment at "changeTextSameActivityTest()" method
Browse files Browse the repository at this point in the history
"changeTextSameActivityTest" may fail when test device or emulator uses 3rd party keyboard app. That actually happened to me, and I had to spend some time on finding what went wrong. So, adding some informational comment at the method would help developers who may encounter the same test failure.
  • Loading branch information
pungrue26 committed Jul 30, 2016
1 parent e659829 commit 92e5174
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public class MainActivityTest {
// onView(withId(R.id.edit_text_button)).perform(click());
//
// // Check that the text was changed.
// // Note that this test may fail if test device or emulator uses 3rd party keyboard app.
// // If that happens, retry this test after switching keyboard setting to default keyboard.
// onView(withId(R.id.display_text_view)).check(matches(withText(STRING_TO_BE_TYPED)));
// }
}

0 comments on commit 92e5174

Please sign in to comment.