|
|
|
@ -16,9 +16,11 @@ import org.mozilla.fenix.customannotations.SmokeTest
|
|
|
|
|
import org.mozilla.fenix.ext.settings
|
|
|
|
|
import org.mozilla.fenix.helpers.AndroidAssetDispatcher
|
|
|
|
|
import org.mozilla.fenix.helpers.HomeActivityIntentTestRule
|
|
|
|
|
import org.mozilla.fenix.helpers.MatcherHelper.itemContainingText
|
|
|
|
|
import org.mozilla.fenix.helpers.MatcherHelper.itemWithText
|
|
|
|
|
import org.mozilla.fenix.helpers.RetryTestRule
|
|
|
|
|
import org.mozilla.fenix.helpers.TestAssetHelper
|
|
|
|
|
import org.mozilla.fenix.helpers.TestHelper.assertYoutubeAppOpens
|
|
|
|
|
import org.mozilla.fenix.helpers.TestHelper.clickSnackbarButton
|
|
|
|
|
import org.mozilla.fenix.ui.robots.clickContextMenuItem
|
|
|
|
|
import org.mozilla.fenix.ui.robots.clickPageObject
|
|
|
|
@ -279,4 +281,16 @@ class ContextMenusTest {
|
|
|
|
|
dismissContentContextMenu()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
fun verifyContextOpenLinkInAppTest() {
|
|
|
|
|
val defaultWebPage = TestAssetHelper.getExternalLinksAsset(mockWebServer)
|
|
|
|
|
|
|
|
|
|
navigationToolbar {
|
|
|
|
|
}.enterURLAndEnterToBrowser(defaultWebPage.url) {
|
|
|
|
|
longClickPageObject(itemContainingText("Youtube link"))
|
|
|
|
|
clickContextMenuItem("Open link in external app")
|
|
|
|
|
assertYoutubeAppOpens()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|