Bug 1884154 - Remove openInApp Button Reference from UI Tests

fenix/125.0
Jackie Johnson 3 months ago committed by mergify[bot]
parent 45cb24460e
commit 561ebfc2d1

@ -13,7 +13,6 @@ import org.mozilla.fenix.helpers.Constants.PackageName.GOOGLE_DOCS
import org.mozilla.fenix.helpers.HomeActivityIntentTestRule import org.mozilla.fenix.helpers.HomeActivityIntentTestRule
import org.mozilla.fenix.helpers.MatcherHelper import org.mozilla.fenix.helpers.MatcherHelper
import org.mozilla.fenix.helpers.MatcherHelper.itemContainingText 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.MatcherHelper.itemWithText
import org.mozilla.fenix.helpers.TestAssetHelper.getGenericAsset import org.mozilla.fenix.helpers.TestAssetHelper.getGenericAsset
import org.mozilla.fenix.helpers.TestSetup 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 // TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/2145448
// Download PDF file using the download toolbar button // Download PDF file using the download toolbar button
@Test @Test

@ -278,8 +278,8 @@ class BrowserRobot {
fun verifyPDFReaderToolbarItems() = fun verifyPDFReaderToolbarItems() =
assertUIObjectExists( assertUIObjectExists(
itemWithResIdContainingText("download", "Download"), itemWithResIdContainingText("download", "Download"),
itemWithResIdContainingText("openInApp", "Open in app"),
) )
fun clickSubmitLoginButton() { fun clickSubmitLoginButton() {
clickPageObject(itemWithResId("submit")) clickPageObject(itemWithResId("submit"))
assertUIObjectIsGone(itemWithResId("submit")) assertUIObjectIsGone(itemWithResId("submit"))

@ -150,7 +150,6 @@ class CustomTabRobot {
fun verifyPDFReaderToolbarItems() = fun verifyPDFReaderToolbarItems() =
assertUIObjectExists( assertUIObjectExists(
itemWithResIdAndText("download", "Download"), itemWithResIdAndText("download", "Download"),
itemWithResIdAndText("openInApp", "Open in app"),
) )
class Transition { class Transition {

Loading…
Cancel
Save