From d4288a1fefee37dfa12ba46da21471c0ce5ce00e Mon Sep 17 00:00:00 2001 From: Ruben Sousa Date: Thu, 17 Oct 2024 00:12:21 +0200 Subject: [PATCH] Wait for idle scroll in tests --- .../dpadrecyclerview/test/tests/layout/ReverseVerticalTest.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dpadrecyclerview/src/androidTest/kotlin/com/rubensousa/dpadrecyclerview/test/tests/layout/ReverseVerticalTest.kt b/dpadrecyclerview/src/androidTest/kotlin/com/rubensousa/dpadrecyclerview/test/tests/layout/ReverseVerticalTest.kt index fe1c2cb8..08332a2e 100644 --- a/dpadrecyclerview/src/androidTest/kotlin/com/rubensousa/dpadrecyclerview/test/tests/layout/ReverseVerticalTest.kt +++ b/dpadrecyclerview/src/androidTest/kotlin/com/rubensousa/dpadrecyclerview/test/tests/layout/ReverseVerticalTest.kt @@ -100,12 +100,14 @@ class ReverseVerticalTest : DpadRecyclerViewTest() { repeat(5) { KeyEvents.pressDown() + waitForIdleScrollState() column.scrollDown() assertChildrenPositions(column) } repeat(5) { KeyEvents.pressUp() + waitForIdleScrollState() column.scrollUp() assertChildrenPositions(column) }