From 8a579ee62b2b980ce9c289dcd1332f8498d73a42 Mon Sep 17 00:00:00 2001 From: Oana Horvath Date: Thu, 3 Dec 2020 18:20:50 +0200 Subject: [PATCH] For #16838: deleted mainMenuOpenInAppTest --- .../java/org/mozilla/fenix/ui/SmokeTest.kt | 14 -------------- .../fenix/ui/robots/ThreeDotMenuMainRobot.kt | 10 ---------- 2 files changed, 24 deletions(-) diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/SmokeTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/SmokeTest.kt index 613f17b22..4ef54dc4b 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/SmokeTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/SmokeTest.kt @@ -5,7 +5,6 @@ package org.mozilla.fenix.ui import android.view.View -import androidx.core.net.toUri import androidx.recyclerview.widget.RecyclerView import androidx.test.espresso.IdlingRegistry import androidx.test.platform.app.InstrumentationRegistry @@ -267,19 +266,6 @@ class SmokeTest { } } - @Test - fun mainMenuOpenInAppTest() { - // Using youtube as is a default app available in every Android emulator/device - val youtubeUrl = "www.youtube.com" - - navigationToolbar { - }.enterURLAndEnterToBrowser(youtubeUrl.toUri()) { - verifyPageContent("YouTube") - }.openThreeDotMenu { - verifyOpenInAppButton() - } - } - @Test fun verifyETPShieldNotDisplayedIfOFFGlobally() { val defaultWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1) diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/ThreeDotMenuMainRobot.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/ThreeDotMenuMainRobot.kt index 869f313bd..bbcd60285 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/ThreeDotMenuMainRobot.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/ThreeDotMenuMainRobot.kt @@ -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( - 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())