Fixing tests.

This commit is contained in:
Amine 2017-11-12 17:22:40 +01:00
parent 1ebd894be7
commit 1ef2da9f76

View File

@ -80,7 +80,7 @@ class LoginActivityEspressoTest {
onView(withId(R.id.loginProgress)) onView(withId(R.id.loginProgress))
.check(matches(withEffectiveVisibility(ViewMatchers.Visibility.GONE))) .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()) onView(withId(R.id.signInButton)).perform(click())
@ -94,7 +94,7 @@ class LoginActivityEspressoTest {
rule.launchActivity(Intent()) 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()) onView(withId(R.id.withLogin)).perform(click())
@ -121,7 +121,7 @@ class LoginActivityEspressoTest {
rule.launchActivity(Intent()) 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()) onView(withId(R.id.withLogin)).perform(click())
@ -142,7 +142,7 @@ class LoginActivityEspressoTest {
rule.launchActivity(Intent()) 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()) onView(withId(R.id.withLogin)).perform(click())