diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/PDFViewerTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/PDFViewerTest.kt index 913d1c7d28..482e740b58 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/PDFViewerTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/PDFViewerTest.kt @@ -13,7 +13,6 @@ import org.mozilla.fenix.helpers.Constants.PackageName.GOOGLE_DOCS import org.mozilla.fenix.helpers.HomeActivityIntentTestRule import org.mozilla.fenix.helpers.MatcherHelper import org.mozilla.fenix.helpers.MatcherHelper.itemContainingText -import org.mozilla.fenix.helpers.MatcherHelper.itemWithResIdAndText import org.mozilla.fenix.helpers.MatcherHelper.itemWithText import org.mozilla.fenix.helpers.TestAssetHelper.getGenericAsset import org.mozilla.fenix.helpers.TestSetup @@ -45,20 +44,6 @@ class PDFViewerTest : TestSetup() { } } - // TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/2159718 - @Test - fun verifyPDFViewerOpenInAppButtonTest() { - val genericURL = getGenericAsset(mockWebServer, 3) - - navigationToolbar { - }.enterURLAndEnterToBrowser(genericURL.url) { - clickPageObject(itemWithText("PDF form file")) - verifyPDFReaderToolbarItems() - clickPageObject(itemWithResIdAndText("openInApp", "Open in app")) - assertExternalAppOpens(GOOGLE_DOCS) - } - } - // TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/2145448 // Download PDF file using the download toolbar button @Test diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/BrowserRobot.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/BrowserRobot.kt index 4ec6449726..529e19b2a5 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/BrowserRobot.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/BrowserRobot.kt @@ -278,8 +278,8 @@ class BrowserRobot { fun verifyPDFReaderToolbarItems() = assertUIObjectExists( itemWithResIdContainingText("download", "Download"), - itemWithResIdContainingText("openInApp", "Open in app"), ) + fun clickSubmitLoginButton() { clickPageObject(itemWithResId("submit")) assertUIObjectIsGone(itemWithResId("submit")) diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/CustomTabRobot.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/CustomTabRobot.kt index 3c4d37710a..4a6e431b74 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/CustomTabRobot.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/CustomTabRobot.kt @@ -150,7 +150,6 @@ class CustomTabRobot { fun verifyPDFReaderToolbarItems() = assertUIObjectExists( itemWithResIdAndText("download", "Download"), - itemWithResIdAndText("openInApp", "Open in app"), ) class Transition {