diff options
Diffstat (limited to 'tests/src/cgeo/geocaching/activity/logtrackable/LogTrackableActivityTest.java')
-rw-r--r-- | tests/src/cgeo/geocaching/activity/logtrackable/LogTrackableActivityTest.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/activity/logtrackable/LogTrackableActivityTest.java b/tests/src/cgeo/geocaching/activity/logtrackable/LogTrackableActivityTest.java new file mode 100644 index 0000000..cb2a209 --- /dev/null +++ b/tests/src/cgeo/geocaching/activity/logtrackable/LogTrackableActivityTest.java @@ -0,0 +1,26 @@ +package cgeo.geocaching.activity.logtrackable; + +import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView; +import static com.google.android.apps.common.testing.ui.espresso.assertion.ViewAssertions.doesNotExist; +import static com.google.android.apps.common.testing.ui.espresso.assertion.ViewAssertions.matches; +import static com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers.isDisplayed; +import static com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers.withText; + +import cgeo.geocaching.R; + +public class LogTrackableActivityTest extends AbstractLogTrackableActivityTest { + + public void testInsertNameExists() throws Exception { + openActionBar(); + clickActionBarItem(R.string.log_add); + + onView(withText(getString(R.string.init_signature_template_name))).check(matches(isDisplayed())); + } + + public void testInsertNumberNotExists() throws Exception { + openActionBar(); + clickActionBarItem(R.string.log_add); + + onView(withText(getString(R.string.init_signature_template_number))).check(doesNotExist()); + } +} |