mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Update SettingsActivityTest to correctly pass test on LicenseSpinner
This commit is contained in:
parent
0c5e0869b5
commit
e5d7caf5f2
1 changed files with 4 additions and 4 deletions
|
|
@ -84,9 +84,9 @@ public class SettingsActivityTest {
|
||||||
.atPosition(0)
|
.atPosition(0)
|
||||||
.perform(ViewActions.click());
|
.perform(ViewActions.click());
|
||||||
|
|
||||||
// click "CC BY-4.0"
|
// click "Attribution 4.0"
|
||||||
Espresso.onView(
|
Espresso.onView(
|
||||||
ViewMatchers.withText(R.string.license_name_cc_by_4_0)
|
ViewMatchers.withText(R.string.license_name_cc_by_four)
|
||||||
).perform(ViewActions.click());
|
).perform(ViewActions.click());
|
||||||
|
|
||||||
// click "License" (the first item)
|
// click "License" (the first item)
|
||||||
|
|
@ -95,10 +95,10 @@ public class SettingsActivityTest {
|
||||||
.atPosition(0)
|
.atPosition(0)
|
||||||
.perform(ViewActions.click());
|
.perform(ViewActions.click());
|
||||||
|
|
||||||
// test the value remains "CC BY-4.0"
|
// test the value remains "Attribution 4.0"
|
||||||
Espresso.onView(ViewMatchers.isChecked())
|
Espresso.onView(ViewMatchers.isChecked())
|
||||||
.check(ViewAssertions.matches(
|
.check(ViewAssertions.matches(
|
||||||
ViewMatchers.withText(R.string.license_name_cc_by_4_0)
|
ViewMatchers.withText(R.string.license_name_cc_by_four)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue