From 3734450827ee39123789f6dcf46f46e5f2c69833 Mon Sep 17 00:00:00 2001 From: Orix Au Yeung Date: Mon, 22 Aug 2022 08:13:56 +0800 Subject: [PATCH] fix `horizontal_scrolling()` incorrect assuptions --- .../java/com/example/dogglers/HorizontalListTests.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/androidTest/java/com/example/dogglers/HorizontalListTests.kt b/app/src/androidTest/java/com/example/dogglers/HorizontalListTests.kt index c1614738..c0dc833e 100644 --- a/app/src/androidTest/java/com/example/dogglers/HorizontalListTests.kt +++ b/app/src/androidTest/java/com/example/dogglers/HorizontalListTests.kt @@ -53,7 +53,8 @@ class HorizontalListTests : BaseTest() { fun `horizontal_scrolling`() { onView(withId(R.id.horizontal_recycler_view)) .perform(swipeLeft()) - onView(withText("Frankie")).check(matches(isDisplayed())) + Thread.sleep(1500) + onView(withText("Nox")).check(matches(isDisplayed())) } @Test