mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Espresso: match with resource names in settings screen
Apparently this is more robust (especially for SDK version 25)
This commit is contained in:
parent
aeb66492d6
commit
28d73d2b96
1 changed files with 2 additions and 2 deletions
|
|
@ -103,8 +103,8 @@ public class SettingsActivityTest {
|
||||||
|
|
||||||
private static Matcher<View> findPreferenceList() {
|
private static Matcher<View> findPreferenceList() {
|
||||||
return allOf(
|
return allOf(
|
||||||
ViewMatchers.isDescendantOfA(ViewMatchers.withId(android.R.id.content)),
|
ViewMatchers.isDescendantOfA(ViewMatchers.withId(R.id.settingsFragment)),
|
||||||
ViewMatchers.withId(android.R.id.list),
|
ViewMatchers.withResourceName("list"),
|
||||||
ViewMatchers.hasFocus()
|
ViewMatchers.hasFocus()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue