|
|
|
@ -115,7 +115,6 @@ class ThreeDotMenuMainRobot {
|
|
|
|
|
fun verifyAddFirefoxHome() = assertAddToFirefoxHome()
|
|
|
|
|
fun verifyAddToMobileHome() = assertAddToMobileHome()
|
|
|
|
|
fun verifyDesktopSite() = assertDesktopSite()
|
|
|
|
|
fun verifyOpenInAppButton() = assertOpenInAppButton()
|
|
|
|
|
fun verifyDownloadsButton() = assertDownloadsButton()
|
|
|
|
|
|
|
|
|
|
fun verifyThreeDotMainMenuItems() {
|
|
|
|
@ -519,15 +518,6 @@ private fun assertDesktopSite() {
|
|
|
|
|
desktopSiteButton().check(matches(isDisplayed()))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private fun assertOpenInAppButton() {
|
|
|
|
|
onView(withId(R.id.mozac_browser_menu_recyclerView))
|
|
|
|
|
.perform(
|
|
|
|
|
RecyclerViewActions.scrollTo<RecyclerView.ViewHolder>(
|
|
|
|
|
hasDescendant(withText(R.string.browser_menu_open_app_link))
|
|
|
|
|
)
|
|
|
|
|
).check(matches(withEffectiveVisibility(Visibility.VISIBLE)))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private fun downloadsButton() = onView(withText(R.string.library_downloads))
|
|
|
|
|
private fun assertDownloadsButton() {
|
|
|
|
|
onView(withId(R.id.mozac_browser_menu_menuView)).perform(swipeDown())
|
|
|
|
|