summaryrefslogtreecommitdiff
path: root/app/src/androidTest/java/de
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2021-08-20 20:34:33 +0200
committerByteHamster <info@bytehamster.com>2021-08-22 10:56:41 +0200
commit61e86151c686bda0ce26fdccc6c6afa4f070ee40 (patch)
tree3c05b5bc1e5b262d9f0a9cc7641d2685d27b4450 /app/src/androidTest/java/de
parentdb391867608fa37f6568eca02678b3b376e52fa8 (diff)
downloadAntennaPod-61e86151c686bda0ce26fdccc6c6afa4f070ee40.zip
Move queue lock feature to the overflow menu
Diffstat (limited to 'app/src/androidTest/java/de')
-rw-r--r--app/src/androidTest/java/de/test/antennapod/ui/QueueFragmentTest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/src/androidTest/java/de/test/antennapod/ui/QueueFragmentTest.java b/app/src/androidTest/java/de/test/antennapod/ui/QueueFragmentTest.java
index 5b291752d..460dfdb3e 100644
--- a/app/src/androidTest/java/de/test/antennapod/ui/QueueFragmentTest.java
+++ b/app/src/androidTest/java/de/test/antennapod/ui/QueueFragmentTest.java
@@ -15,7 +15,6 @@ import org.junit.runner.RunWith;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.action.ViewActions.click;
import static androidx.test.espresso.matcher.ViewMatchers.withClassName;
-import static androidx.test.espresso.matcher.ViewMatchers.withContentDescription;
import static androidx.test.espresso.matcher.ViewMatchers.withText;
import static de.test.antennapod.NthMatcher.first;
import static org.hamcrest.CoreMatchers.allOf;
@@ -40,9 +39,11 @@ public class QueueFragmentTest {
@Test
public void testLockEmptyQueue() {
- onView(withContentDescription(R.string.lock_queue)).perform(click());
+ onView(first(EspressoTestUtils.actionBarOverflow())).perform(click());
+ onView(withText(R.string.lock_queue)).perform(click());
onView(allOf(withClassName(endsWith("Button")), withText(R.string.lock_queue))).perform(click());
- onView(withContentDescription(R.string.unlock_queue)).perform(click());
+ onView(first(EspressoTestUtils.actionBarOverflow())).perform(click());
+ onView(withText(R.string.lock_queue)).perform(click());
}
@Test