Stabilisation
Hide keyboard before entering text
This commit is contained in:
parent
6ac401db9b
commit
f79784bc8c
@ -96,7 +96,7 @@ class RegistrationTest {
|
|||||||
|
|
||||||
// Ensure password
|
// Ensure password
|
||||||
onView((withId(R.id.passwordField)))
|
onView((withId(R.id.passwordField)))
|
||||||
.perform(typeText(password))
|
.perform(closeSoftKeyboard(), typeText(password))
|
||||||
|
|
||||||
// Submit
|
// Submit
|
||||||
onView(withId(R.id.loginSubmit))
|
onView(withId(R.id.loginSubmit))
|
||||||
|
@ -84,7 +84,7 @@ abstract class VerificationTestBase {
|
|||||||
.check(ViewAssertions.matches(CoreMatchers.not(ViewMatchers.isEnabled())))
|
.check(ViewAssertions.matches(CoreMatchers.not(ViewMatchers.isEnabled())))
|
||||||
|
|
||||||
Espresso.onView((ViewMatchers.withId(R.id.passwordField)))
|
Espresso.onView((ViewMatchers.withId(R.id.passwordField)))
|
||||||
.perform(ViewActions.typeText(password))
|
.perform(ViewActions.closeSoftKeyboard(), ViewActions.typeText(password))
|
||||||
|
|
||||||
Espresso.onView(ViewMatchers.withId(R.id.loginSubmit))
|
Espresso.onView(ViewMatchers.withId(R.id.loginSubmit))
|
||||||
.check(ViewAssertions.matches(ViewMatchers.isEnabled()))
|
.check(ViewAssertions.matches(ViewMatchers.isEnabled()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user