This commit is contained in:
ligi 2015-09-10 13:24:21 +02:00
parent b799f7eb93
commit f87e4a5efd

View file

@ -1,18 +1,14 @@
package org.ligi.passandroid.steps;
import org.ligi.passandroid.R;
import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.action.ViewActions.click;
import static android.support.test.espresso.action.ViewActions.swipeLeft;
import static android.support.test.espresso.assertion.ViewAssertions.matches;
import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
import static android.support.test.espresso.matcher.ViewMatchers.withId;
import static android.support.test.espresso.matcher.ViewMatchers.withText;
public class PassEditSteps {
public static void goToMetaData() {
onView(withId(R.id.passEditPager)).perform(swipeLeft());
sleep();
}
public static void goToImages() {
@ -30,6 +26,16 @@ public class PassEditSteps {
public static void goToBarCode() {
goToColor();
onView(withId(R.id.passEditPager)).perform(swipeLeft());
onView(withId(R.id.barcodeTypeRadioGroup)).check(matches(isDisplayed()));
sleep();
}
private static void sleep() {
try {
Thread.sleep(500);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}