From 1ef2da9f762e7a62907f4e4b9303ef7f0b756447 Mon Sep 17 00:00:00 2001 From: Amine Date: Sun, 12 Nov 2017 17:22:40 +0100 Subject: [PATCH] Fixing tests. --- .../bou/readerforselfoss/LoginActivityEspressoTest.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/androidTest/java/apps/amine/bou/readerforselfoss/LoginActivityEspressoTest.kt b/app/src/androidTest/java/apps/amine/bou/readerforselfoss/LoginActivityEspressoTest.kt index 0fd833a..9b99ce4 100644 --- a/app/src/androidTest/java/apps/amine/bou/readerforselfoss/LoginActivityEspressoTest.kt +++ b/app/src/androidTest/java/apps/amine/bou/readerforselfoss/LoginActivityEspressoTest.kt @@ -80,7 +80,7 @@ class LoginActivityEspressoTest { onView(withId(R.id.loginProgress)) .check(matches(withEffectiveVisibility(ViewMatchers.Visibility.GONE))) - onView(withId(R.id.url)).perform(click()).perform(typeText("WRONGURL")) + onView(withId(R.id.urlView)).perform(click()).perform(typeText("WRONGURL")) onView(withId(R.id.signInButton)).perform(click()) @@ -94,7 +94,7 @@ class LoginActivityEspressoTest { rule.launchActivity(Intent()) - onView(withId(R.id.url)).perform(click()).perform(typeText(url), closeSoftKeyboard()) + onView(withId(R.id.urlView)).perform(click()).perform(typeText(url), closeSoftKeyboard()) onView(withId(R.id.withLogin)).perform(click()) @@ -121,7 +121,7 @@ class LoginActivityEspressoTest { rule.launchActivity(Intent()) - onView(withId(R.id.url)).perform(click()).perform(typeText(url), closeSoftKeyboard()) + onView(withId(R.id.urlView)).perform(click()).perform(typeText(url), closeSoftKeyboard()) onView(withId(R.id.withLogin)).perform(click()) @@ -142,7 +142,7 @@ class LoginActivityEspressoTest { rule.launchActivity(Intent()) - onView(withId(R.id.url)).perform(click()).perform(typeText(url), closeSoftKeyboard()) + onView(withId(R.id.urlView)).perform(click()).perform(typeText(url), closeSoftKeyboard()) onView(withId(R.id.withLogin)).perform(click())