Skip to content

Commit

Permalink
test: fix failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxzero committed Sep 25, 2023
1 parent 6c170a6 commit da5378f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -53,6 +54,7 @@ class FpxEmailFormFragmentTest {
@Test
fun clickSubmitButton_requestNavigateToBankChooser() {
onView(withId(R.id.edit_email)).perform(typeText("[email protected]"), pressImeActionButton())
closeSoftKeyboard()
onView(withId(R.id.button_submit)).perform(click())

verify(mockNavigation).navigateToFpxBankChooser(banks, "[email protected]")
Expand Down

0 comments on commit da5378f

Please sign in to comment.