Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AnasNaouchi committed Jul 9, 2024
1 parent edda69a commit 8e9c041
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ class PaymentCreatorActivityTest {
onView(
withListId(R.id.recycler_view).atPosition(1),
).check(matches(ViewMatchers.isEnabled()))
.check(matches(ViewMatchers.hasDescendant(ViewMatchers.withText(R.string.googlepay))))
.check(matches(ViewMatchers.hasDescendant(ViewMatchers.withText(R.string.payment_truemoney_title))))
onView(
withListId(R.id.recycler_view).atPosition(2),
).check(matches(ViewMatchers.isEnabled()))
.check(matches(ViewMatchers.hasDescendant(ViewMatchers.withText(R.string.payment_truemoney_title))))
.check(matches(ViewMatchers.hasDescendant(ViewMatchers.withText(R.string.googlepay))))
onView(ViewMatchers.withText(R.string.payment_method_fpx_title)).check(doesNotExist())
onView(withId(R.id.recycler_view))
.check(matches(itemCount(3)))
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/test/java/co/omise/android/TokenizationMethodTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class TokenizationMethodTest {
)

capability.paymentMethods?.any { it.name == "Method no: 1" }?.let { assertTrue(it) }
capability.paymentMethods?.any { it.name == "googlepay" }?.let { assertTrue(it) }
capability.paymentMethods?.any { it.name == "kanpay" }?.let { assertTrue(it) }
capability.tokenizationMethods?.any { it == "googlepay" }?.let { assertTrue(it) }
capability.tokenizationMethods?.any { it == "kanpay" }?.let { assertTrue(it) }
}

@Test
Expand Down

0 comments on commit 8e9c041

Please sign in to comment.