summaryrefslogtreecommitdiff
path: root/app/src/androidTest/java/de/test/antennapod/ui/MainActivityTest.java
diff options
context:
space:
mode:
authorH. Lehmann <ByteHamster@users.noreply.github.com>2020-03-16 22:41:05 +0100
committerGitHub <noreply@github.com>2020-03-16 22:41:05 +0100
commit21c617cc74495d834948d303aa981aab9ebb29fc (patch)
treef803cab0ea55c0078980f4b6d9bdec1f7033d81a /app/src/androidTest/java/de/test/antennapod/ui/MainActivityTest.java
parent1837cdd5767dc1b8caa9eb5d707aecb4645de2fb (diff)
parente4fa92b8b98ea15ea49daf05b474e7bbdb626fac (diff)
downloadAntennaPod-21c617cc74495d834948d303aa981aab9ebb29fc.zip
Merge pull request #3936 from ByteHamster/add-feed-page
Made add feed page more white
Diffstat (limited to 'app/src/androidTest/java/de/test/antennapod/ui/MainActivityTest.java')
-rw-r--r--app/src/androidTest/java/de/test/antennapod/ui/MainActivityTest.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/app/src/androidTest/java/de/test/antennapod/ui/MainActivityTest.java b/app/src/androidTest/java/de/test/antennapod/ui/MainActivityTest.java
index 0784cb078..d0b2cb4b4 100644
--- a/app/src/androidTest/java/de/test/antennapod/ui/MainActivityTest.java
+++ b/app/src/androidTest/java/de/test/antennapod/ui/MainActivityTest.java
@@ -23,12 +23,9 @@ import java.io.IOException;
import static androidx.test.InstrumentationRegistry.getInstrumentation;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.action.ViewActions.click;
+import static androidx.test.espresso.action.ViewActions.replaceText;
import static androidx.test.espresso.action.ViewActions.scrollTo;
-import static androidx.test.espresso.action.ViewActions.typeText;
import static androidx.test.espresso.contrib.ActivityResultMatchers.hasResultCode;
-import static androidx.test.espresso.intent.Intents.intended;
-import static androidx.test.espresso.intent.Intents.times;
-import static androidx.test.espresso.intent.matcher.IntentMatchers.hasComponent;
import static androidx.test.espresso.matcher.ViewMatchers.isRoot;
import static androidx.test.espresso.matcher.ViewMatchers.withId;
import static androidx.test.espresso.matcher.ViewMatchers.withText;
@@ -77,7 +74,8 @@ public class MainActivityTest {
final Feed feed = uiTestUtils.hostedFeeds.get(0);
openNavDrawer();
onView(withText(R.string.add_feed_label)).perform(click());
- onView(withId(R.id.etxtFeedurl)).perform(scrollTo(), typeText(feed.getDownload_url()));
+ onView(withId(R.id.btn_add_via_url)).perform(scrollTo(), click());
+ onView(withId(R.id.text)).perform(replaceText(feed.getDownload_url()));
onView(withText(R.string.confirm_label)).perform(scrollTo(), click());
Espresso.closeSoftKeyboard();
onView(withText(R.string.subscribe_label)).perform(click());