Skip to content

Commit

Permalink
Simplify UI test
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensousa committed Dec 27, 2023
1 parent 750c92e commit eb93af5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,15 @@ class VerticalAlignmentTest : DpadRecyclerViewTest() {
fraction = 0f
)
)
KeyEvents.pressDown(times = 5)
val recyclerViewBounds = getRecyclerViewBounds()
val startPosition = 5
selectPosition(startPosition)
repeat(5) {
val viewBounds = getItemViewBounds(position = startPosition + it)
assertThat(viewBounds.top)
.isEqualTo(recyclerViewBounds.top + containerOffset + abs(itemOffset))
KeyEvents.pressDown()
waitForIdleScrollState()
}
}

Expand Down

0 comments on commit eb93af5

Please sign in to comment.