diff --git a/sdk/src/sharedTest/java/co/omise/android/ui/FpxEmailFormFragmentTest.kt b/sdk/src/sharedTest/java/co/omise/android/ui/FpxEmailFormFragmentTest.kt index ee4cd562e..1c0551f01 100644 --- a/sdk/src/sharedTest/java/co/omise/android/ui/FpxEmailFormFragmentTest.kt +++ b/sdk/src/sharedTest/java/co/omise/android/ui/FpxEmailFormFragmentTest.kt @@ -1,6 +1,7 @@ package co.omise.android.ui import androidx.test.core.app.ActivityScenario +import androidx.test.espresso.Espresso.closeSoftKeyboard import androidx.test.espresso.Espresso.onView import androidx.test.espresso.action.ViewActions.* import androidx.test.espresso.assertion.ViewAssertions.matches @@ -53,6 +54,7 @@ class FpxEmailFormFragmentTest { @Test fun clickSubmitButton_requestNavigateToBankChooser() { onView(withId(R.id.edit_email)).perform(typeText("example@omise.co"), pressImeActionButton()) + closeSoftKeyboard() onView(withId(R.id.button_submit)).perform(click()) verify(mockNavigation).navigateToFpxBankChooser(banks, "example@omise.co")