Skip to content

Commit

Permalink
try fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerem Beygo committed Oct 29, 2024
1 parent 091b957 commit 4a9355f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion .sauce/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ suites:
- name: "Samsung.*"
platformVersion: "13"
testOptions:
size: large
visualCheck: $VISUAL_CHECK


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ public void succesfulLoginTest() {
.perform(scroll)
.perform(click());

Espresso.pressBack();
onView(withId(R.id.menuIV)).check(matches(isDisplayed()));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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() {

Expand Down

0 comments on commit 4a9355f

Please sign in to comment.