Stabilisation

Hide keyboard before entering text
This commit is contained in:
Valere 2020-09-25 09:45:34 +02:00 committed by Benoit Marty
parent 6ac401db9b
commit f79784bc8c
2 changed files with 2 additions and 2 deletions

View File

@ -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))

View File

@ -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()))