From da5378f20cdae99aaebf2c9a66ba440e3c36d988 Mon Sep 17 00:00:00 2001 From: Natthawut Haematulin Date: Mon, 25 Sep 2023 20:36:57 +0700 Subject: [PATCH] test: fix failed test --- .../java/co/omise/android/ui/FpxEmailFormFragmentTest.kt | 2 ++ 1 file changed, 2 insertions(+) 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")