From b00a680e368f2c2d56fb9e3a3603db28e59db861 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Tue, 4 Feb 2020 15:03:26 +0100 Subject: [PATCH] Give view some time to load --- .../java/de/test/antennapod/ui/TextOnlyFeedsTest.java | 1 + 1 file changed, 1 insertion(+) 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 3f0bf6967..8f1000d43 100644 --- a/app/src/androidTest/java/de/test/antennapod/ui/TextOnlyFeedsTest.java +++ b/app/src/androidTest/java/de/test/antennapod/ui/TextOnlyFeedsTest.java @@ -64,6 +64,7 @@ public class TextOnlyFeedsTest { openNavDrawer(); onDrawerItem(withText(feed.getTitle())).perform(scrollTo(), 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()); onView(isRoot()).perform(waitForView(allOf(withText(R.string.mark_read_no_media_label), not(isDisplayed())), 3000)); }