Skip to content

Commit

Permalink
Deflake grid vertical scroll test
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensousa committed Jun 19, 2024
1 parent 03e1a29 commit e95db21
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,13 +294,13 @@ class VerticalGridScrollTest : DpadRecyclerViewTest() {

// Scroll down until last uneven child is visible
repeat(5) {
KeyEvents.pressDown(delay = 500L)
KeyEvents.pressDown()
waitForIdleScrollState()
}

waitForIdleScrollState()

repeat(5) {
KeyEvents.pressUp(delay = 500L)
KeyEvents.pressUp()
waitForIdleScrollState()
}

assertThat(getChildrenBounds()).isEqualTo(childPositions)
Expand Down

0 comments on commit e95db21

Please sign in to comment.