Skip to content

Commit

Permalink
Add scroll to position to avoid flaky test (trial)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnasNaouchi committed May 29, 2024
1 parent 718d020 commit a7cf958
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ class PaymentChooserFragmentTest {

@Test
fun clickMobileBankingPaymentMethod_navigateToMobileBankingChooser() {
onView(withId(R.id.recycler_view)).perform(scrollToPosition<ViewHolder>(8))
onView(withListId(R.id.recycler_view).atPosition(8)).perform(click())

val expectedMethods =
Expand Down

0 comments on commit a7cf958

Please sign in to comment.