Skip to content

Commit

Permalink
Fixed test due to swipe action interacting with emulator's back gesture
Browse files Browse the repository at this point in the history
  • Loading branch information
federicoiosue committed Oct 29, 2023
1 parent 0eadf44 commit f5ef45e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit f5ef45e

Please sign in to comment.