mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +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() {
|
||||
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()
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue