From 3e00849973657813e8c0bf10acc71228e6daed08 Mon Sep 17 00:00:00 2001 From: Nikita Evdokimov Date: Fri, 13 Oct 2023 13:01:49 +0300 Subject: [PATCH] #99: Add recycler to scrollTo constraints --- .../kakaocup/kakao/common/actions/NestedScrollToAction.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kakao/src/main/kotlin/io/github/kakaocup/kakao/common/actions/NestedScrollToAction.kt b/kakao/src/main/kotlin/io/github/kakaocup/kakao/common/actions/NestedScrollToAction.kt index 83fb1679a..db5f5b57d 100644 --- a/kakao/src/main/kotlin/io/github/kakaocup/kakao/common/actions/NestedScrollToAction.kt +++ b/kakao/src/main/kotlin/io/github/kakaocup/kakao/common/actions/NestedScrollToAction.kt @@ -5,6 +5,7 @@ import android.widget.HorizontalScrollView import android.widget.ListView import android.widget.ScrollView import androidx.core.widget.NestedScrollView +import androidx.recyclerview.widget.RecyclerView import androidx.test.espresso.ViewAction import androidx.test.espresso.action.ScrollToAction import androidx.test.espresso.matcher.ViewMatchers @@ -24,6 +25,7 @@ class NestedScrollToAction : ViewAction by ScrollToAction() { isDescendantOfA( anyOf( isAssignableFrom(ScrollView::class.java), + isAssignableFrom(RecyclerView::class.java), isAssignableFrom(HorizontalScrollView::class.java), isAssignableFrom(NestedScrollView::class.java), isAssignableFrom(ListView::class.java)