diff options
author | GitStart <1501599+gitstart@users.noreply.github.com> | 2023-02-22 20:04:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 20:04:04 +0100 |
commit | 25ddd73f244dc6444ed052942d763384f5c58cac (patch) | |
tree | f0b032d95c166df3c06092b83aafb3147bbcd2f5 /app/src/androidTest/java | |
parent | 50eb1e9cf93c81e4eec440934feb9ad30bda85b4 (diff) | |
download | AntennaPod-25ddd73f244dc6444ed052942d763384f5c58cac.zip |
Add sort option to episodes screen (#6286)
Diffstat (limited to 'app/src/androidTest/java')
-rw-r--r-- | app/src/androidTest/java/de/test/antennapod/playback/PlaybackTest.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/src/androidTest/java/de/test/antennapod/playback/PlaybackTest.java b/app/src/androidTest/java/de/test/antennapod/playback/PlaybackTest.java index bb3c0bf67..426a30bb8 100644 --- a/app/src/androidTest/java/de/test/antennapod/playback/PlaybackTest.java +++ b/app/src/androidTest/java/de/test/antennapod/playback/PlaybackTest.java @@ -13,6 +13,7 @@ import androidx.test.rule.ActivityTestRule; import de.danoeh.antennapod.core.receiver.MediaButtonReceiver; import de.danoeh.antennapod.model.feed.FeedItemFilter; +import de.danoeh.antennapod.model.feed.SortOrder; import de.danoeh.antennapod.playback.base.PlayerStatus; import org.awaitility.Awaitility; import org.hamcrest.Matcher; @@ -252,7 +253,8 @@ public class PlaybackTest { openNavDrawer(); onDrawerItem(withText(R.string.episodes_label)).perform(click()); - final List<FeedItem> episodes = DBReader.getRecentlyPublishedEpisodes(0, 10, FeedItemFilter.unfiltered()); + final List<FeedItem> episodes = DBReader.getRecentlyPublishedEpisodes(0, 10, + FeedItemFilter.unfiltered(), SortOrder.DATE_NEW_OLD); Matcher<View> allEpisodesMatcher = allOf(withId(R.id.recyclerView), isDisplayed(), hasMinimumChildCount(2)); onView(isRoot()).perform(waitForView(allEpisodesMatcher, 1000)); onView(allEpisodesMatcher).perform(actionOnItemAtPosition(0, clickChildViewWithId(R.id.secondaryActionButton))); @@ -287,7 +289,8 @@ public class PlaybackTest { uiTestUtils.addLocalFeedData(true); DBWriter.clearQueue().get(); activityTestRule.launchActivity(new Intent()); - final List<FeedItem> episodes = DBReader.getRecentlyPublishedEpisodes(0, 10, FeedItemFilter.unfiltered()); + final List<FeedItem> episodes = DBReader.getRecentlyPublishedEpisodes(0, 10, + FeedItemFilter.unfiltered(), SortOrder.DATE_NEW_OLD); startLocalPlayback(); FeedMedia media = episodes.get(0).getMedia(); |