Merge pull request #666 from whym/tests

Espresso: match with resource names in settings screen
This commit is contained in:
Vivek Maskara 2017-05-24 19:31:23 +05:30 committed by GitHub
commit 67dfa170d2

View file

@ -103,8 +103,8 @@ public class SettingsActivityTest {
private static Matcher<View> findPreferenceList() {
return allOf(
ViewMatchers.isDescendantOfA(ViewMatchers.withId(android.R.id.content)),
ViewMatchers.withId(android.R.id.list),
ViewMatchers.isDescendantOfA(ViewMatchers.withId(R.id.settingsFragment)),
ViewMatchers.withResourceName("list"),
ViewMatchers.hasFocus()
);
}