From bbde3ff9ded6aecc94b3e67e144c1018b0ca89b0 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Fri, 5 Mar 2021 13:09:48 +0100 Subject: Fixed test --- .../androidTest/java/de/test/antennapod/ui/NavigationDrawerTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/src') diff --git a/app/src/androidTest/java/de/test/antennapod/ui/NavigationDrawerTest.java b/app/src/androidTest/java/de/test/antennapod/ui/NavigationDrawerTest.java index 53396372a..cd9810ba9 100644 --- a/app/src/androidTest/java/de/test/antennapod/ui/NavigationDrawerTest.java +++ b/app/src/androidTest/java/de/test/antennapod/ui/NavigationDrawerTest.java @@ -30,7 +30,6 @@ import java.util.List; import static androidx.test.espresso.Espresso.onView; import static androidx.test.espresso.action.ViewActions.click; import static androidx.test.espresso.action.ViewActions.longClick; -import static androidx.test.espresso.action.ViewActions.scrollTo; import static androidx.test.espresso.action.ViewActions.swipeUp; import static androidx.test.espresso.intent.Intents.intended; import static androidx.test.espresso.intent.matcher.IntentMatchers.hasComponent; @@ -123,7 +122,7 @@ public class NavigationDrawerTest { for (int i = 0; i < uiTestUtils.hostedFeeds.size(); i++) { Feed f = uiTestUtils.hostedFeeds.get(i); openNavDrawer(); - onDrawerItem(withText(f.getTitle())).perform(scrollTo(), click()); + onDrawerItem(withText(f.getTitle())).perform(click()); onView(isRoot()).perform(waitForView(allOf(isDescendantOfA(withId(R.id.appBar)), withText(f.getTitle()), isDisplayed()), 1000)); } -- cgit v1.2.3