Update SettingsActivityTest to correctly pass test on LicenseSpinner

This commit is contained in:
Adam Jones 2017-05-10 23:15:15 +01:00
parent 0c5e0869b5
commit e5d7caf5f2

View file

@ -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)
)); ));
} }