From f5ef45e2a8a277add98e61ade6c8c381f61bef44 Mon Sep 17 00:00:00 2001 From: Federico Iosue Date: Sun, 29 Oct 2023 19:48:05 +0100 Subject: [PATCH] Fixed test due to swipe action interacting with emulator's back gesture --- .../it/feio/android/omninotes/ui/MrJingleLifecycleTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/omniNotes/src/androidTest/java/it/feio/android/omninotes/ui/MrJingleLifecycleTest.java b/omniNotes/src/androidTest/java/it/feio/android/omninotes/ui/MrJingleLifecycleTest.java index b6edb9775..52c923778 100644 --- a/omniNotes/src/androidTest/java/it/feio/android/omninotes/ui/MrJingleLifecycleTest.java +++ b/omniNotes/src/androidTest/java/it/feio/android/omninotes/ui/MrJingleLifecycleTest.java @@ -38,7 +38,6 @@ import it.feio.android.omninotes.R; import it.feio.android.omninotes.models.Note; import it.feio.android.omninotes.testutils.NoRealDeviceTest; -import java.io.IOException; import java.util.List; import org.hamcrest.core.IsInstanceOf; import org.junit.Test; @@ -149,7 +148,7 @@ public void mrJingle_displayedOnArchiveWhenEmptiedBySwiping() { onView(withId(R.id.list)).perform( RecyclerViewActions.actionOnItemAtPosition(0, new GeneralSwipeAction( - Swipe.SLOW, GeneralLocation.BOTTOM_RIGHT, GeneralLocation.BOTTOM_LEFT, + Swipe.FAST, GeneralLocation.CENTER, GeneralLocation.CENTER_LEFT, Press.FINGER))); onView(allOf(withId(R.id.empty_list), withText(R.string.no_items_in_list),