diff options
author | ByteHamster <info@bytehamster.com> | 2021-03-05 15:26:21 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2021-03-05 15:26:21 +0100 |
commit | 3a2a2abbd9ffc0fcb8d8df11f25206cdad9bc101 (patch) | |
tree | fbd83bad8cf05c1bb85b41623144ddb8f89d830b /app/src/androidTest | |
parent | 3f21ef50d313363238990bbfac186acf25e3c143 (diff) | |
download | AntennaPod-3a2a2abbd9ffc0fcb8d8df11f25206cdad9bc101.zip |
Test fixes
Diffstat (limited to 'app/src/androidTest')
-rw-r--r-- | app/src/androidTest/java/de/test/antennapod/ui/TextOnlyFeedsTest.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/src/androidTest/java/de/test/antennapod/ui/TextOnlyFeedsTest.java b/app/src/androidTest/java/de/test/antennapod/ui/TextOnlyFeedsTest.java index 488c87052..abae07bac 100644 --- a/app/src/androidTest/java/de/test/antennapod/ui/TextOnlyFeedsTest.java +++ b/app/src/androidTest/java/de/test/antennapod/ui/TextOnlyFeedsTest.java @@ -18,9 +18,10 @@ import java.io.IOException; import static androidx.test.espresso.Espresso.onView; import static androidx.test.espresso.action.ViewActions.click; -import static androidx.test.espresso.action.ViewActions.scrollTo; +import static androidx.test.espresso.action.ViewActions.swipeUp; import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed; import static androidx.test.espresso.matcher.ViewMatchers.isRoot; +import static androidx.test.espresso.matcher.ViewMatchers.withId; import static androidx.test.espresso.matcher.ViewMatchers.withText; import static de.test.antennapod.EspressoTestUtils.onDrawerItem; import static de.test.antennapod.EspressoTestUtils.openNavDrawer; @@ -61,7 +62,8 @@ public class TextOnlyFeedsTest { uiTestUtils.addLocalFeedData(false); final Feed feed = uiTestUtils.hostedFeeds.get(0); openNavDrawer(); - onDrawerItem(withText(feed.getTitle())).perform(scrollTo(), click()); + onView(withId(R.id.nav_list)).perform(swipeUp()); + onDrawerItem(withText(feed.getTitle())).perform(click()); onView(withText(feed.getItemAtIndex(0).getTitle())).perform(click()); onView(isRoot()).perform(waitForView(withText(R.string.mark_read_no_media_label), 3000)); onView(withText(R.string.mark_read_no_media_label)).perform(click()); |