From 211a8b2583f542bcfb7558c414fc7de6d91acd71 Mon Sep 17 00:00:00 2001 From: Marc Leclair Date: Wed, 5 Feb 2020 15:20:28 -0500 Subject: [PATCH] fixing UI test --- .../java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt index 835e0f5a0..46136cb49 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt @@ -138,9 +138,9 @@ class HomeScreenRobot { .perform(click()) } - fun swipeToBottom() = onView(withId(R.id.home_component)).perform(ViewActions.swipeUp()) + fun swipeToBottom() = onView(withId(R.id.sessionControlRecyclerView)).perform(ViewActions.swipeUp()) - fun swipeToTop() = onView(withId(R.id.home_component)).perform(ViewActions.swipeDown()) + fun swipeToTop() = onView(withId(R.id.sessionControlRecyclerView)).perform(ViewActions.swipeDown()) fun swipeTabRight(title: String) = onView(allOf(withId(R.id.tab_title), withText(title))).perform(ViewActions.swipeRight()) @@ -274,7 +274,7 @@ private fun assertNoCollectionsText() = ) .check(matches(withEffectiveVisibility(Visibility.VISIBLE))) -private fun assertHomeComponent() = onView(ViewMatchers.withResourceName("home_component")) +private fun assertHomeComponent() = onView(ViewMatchers.withResourceName("sessionControlRecyclerView")) .check(matches(withEffectiveVisibility(Visibility.VISIBLE))) private fun threeDotButton() = onView(allOf(withId(R.id.menuButton))) @@ -410,7 +410,7 @@ private fun assertExistingTabList() = .check(matches(withEffectiveVisibility(Visibility.VISIBLE))) private fun assertExistingOpenTabs(title: String) = - onView(withId(R.id.home_component)).perform( + onView(withId(R.id.sessionControlRecyclerView)).perform( RecyclerViewActions.scrollTo( ViewMatchers.hasDescendant(withText(title)) )