From f79784bc8c2bb91a6cad0b199bf0c9eec4f884e4 Mon Sep 17 00:00:00 2001 From: Valere Date: Fri, 25 Sep 2020 09:45:34 +0200 Subject: [PATCH] Stabilisation Hide keyboard before entering text --- vector/src/androidTest/java/im/vector/app/RegistrationTest.kt | 2 +- .../src/androidTest/java/im/vector/app/VerificationTestBase.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vector/src/androidTest/java/im/vector/app/RegistrationTest.kt b/vector/src/androidTest/java/im/vector/app/RegistrationTest.kt index 016d25da78..a290aeec80 100644 --- a/vector/src/androidTest/java/im/vector/app/RegistrationTest.kt +++ b/vector/src/androidTest/java/im/vector/app/RegistrationTest.kt @@ -96,7 +96,7 @@ class RegistrationTest { // Ensure password onView((withId(R.id.passwordField))) - .perform(typeText(password)) + .perform(closeSoftKeyboard(), typeText(password)) // Submit onView(withId(R.id.loginSubmit)) diff --git a/vector/src/androidTest/java/im/vector/app/VerificationTestBase.kt b/vector/src/androidTest/java/im/vector/app/VerificationTestBase.kt index 015f561920..20d0053a9f 100644 --- a/vector/src/androidTest/java/im/vector/app/VerificationTestBase.kt +++ b/vector/src/androidTest/java/im/vector/app/VerificationTestBase.kt @@ -84,7 +84,7 @@ abstract class VerificationTestBase { .check(ViewAssertions.matches(CoreMatchers.not(ViewMatchers.isEnabled()))) Espresso.onView((ViewMatchers.withId(R.id.passwordField))) - .perform(ViewActions.typeText(password)) + .perform(ViewActions.closeSoftKeyboard(), ViewActions.typeText(password)) Espresso.onView(ViewMatchers.withId(R.id.loginSubmit)) .check(ViewAssertions.matches(ViewMatchers.isEnabled()))