package cgeo.geocaching.log;
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;
import android.test.suitebuilder.annotation.Suppress;
// disabled because of issues with testing on Lollipop
@Suppress
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());
}
}