diff --git a/.sauce/config.yml b/.sauce/config.yml index df0f309..4338b77 100644 --- a/.sauce/config.yml +++ b/.sauce/config.yml @@ -26,7 +26,6 @@ suites: - name: "Samsung.*" platformVersion: "13" testOptions: - size: large visualCheck: $VISUAL_CHECK diff --git a/app/src/androidTest/java/com/saucelabs/mydemoapp/android/view/activities/LoginTest.java b/app/src/androidTest/java/com/saucelabs/mydemoapp/android/view/activities/LoginTest.java index 31df900..0ef5588 100644 --- a/app/src/androidTest/java/com/saucelabs/mydemoapp/android/view/activities/LoginTest.java +++ b/app/src/androidTest/java/com/saucelabs/mydemoapp/android/view/activities/LoginTest.java @@ -163,7 +163,6 @@ public void succesfulLoginTest() { .perform(scroll) .perform(click()); - Espresso.pressBack(); onView(withId(R.id.menuIV)).check(matches(isDisplayed())); } } diff --git a/app/src/androidTest/java/com/saucelabs/mydemoapp/android/view/activities/VisualTest.java b/app/src/androidTest/java/com/saucelabs/mydemoapp/android/view/activities/VisualTest.java index 8797aaa..2b1268a 100644 --- a/app/src/androidTest/java/com/saucelabs/mydemoapp/android/view/activities/VisualTest.java +++ b/app/src/androidTest/java/com/saucelabs/mydemoapp/android/view/activities/VisualTest.java @@ -26,11 +26,13 @@ import com.saucelabs.mydemoapp.android.R; import com.saucelabs.mydemoapp.android.actions.NestingAwareScrollAction; import com.saucelabs.mydemoapp.android.actions.SideNavClickAction; +import com.saucelabs.mydemoapp.android.utils.SingletonClass; import com.saucelabs.visual.VisualCheckOptions; import com.saucelabs.visual.VisualClient; import com.saucelabs.visual.junit.TestMetaInfoRule; import org.junit.AfterClass; +import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; @@ -51,6 +53,12 @@ public class VisualTest extends BaseTest { .buildName("My Demo App") .build(); + @Before + public void removeLogin() { + SingletonClass.getInstance().isLogin = false; + SingletonClass.getInstance().hasVisualChanges = false; + } + @Test public void checkAppCatalog() {