1
0
Fork 0

fixing UI test

master
Marc Leclair 2020-02-05 15:20:28 -05:00 committed by Jeff Boek
parent afab1c0f4e
commit 211a8b2583
1 changed files with 4 additions and 4 deletions

View File

@ -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<RecyclerView.ViewHolder>(
ViewMatchers.hasDescendant(withText(title))
)