|
|
|
@ -53,7 +53,6 @@ class ContextMenusTest {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
@Ignore("Disabling because of intermittent failures https://github.com/mozilla-mobile/fenix/issues/8663")
|
|
|
|
|
fun verifyContextOpenLinkNewTab() {
|
|
|
|
|
val pageLinks =
|
|
|
|
|
TestAssetHelper.getGenericAsset(mockWebServer, 4)
|
|
|
|
@ -75,7 +74,6 @@ class ContextMenusTest {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Ignore("Intermittent failure - https://github.com/mozilla-mobile/fenix/issues/10586")
|
|
|
|
|
@Test
|
|
|
|
|
fun verifyContextOpenLinkPrivateTab() {
|
|
|
|
|
val pageLinks =
|
|
|
|
@ -98,7 +96,6 @@ class ContextMenusTest {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Ignore("Intermittent failure - https://github.com/mozilla-mobile/fenix/issues/8832")
|
|
|
|
|
@Test
|
|
|
|
|
fun verifyContextCopyLink() {
|
|
|
|
|
val pageLinks =
|
|
|
|
@ -119,7 +116,6 @@ class ContextMenusTest {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Ignore("Intermittent failure - https://github.com/mozilla-mobile/fenix/issues/10586")
|
|
|
|
|
@Test
|
|
|
|
|
fun verifyContextShareLink() {
|
|
|
|
|
val pageLinks =
|
|
|
|
@ -136,7 +132,6 @@ class ContextMenusTest {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Ignore("Temp disable intermittent failure - https://github.com/mozilla-mobile/fenix/issues/7687")
|
|
|
|
|
@Test
|
|
|
|
|
fun verifyContextOpenImageNewTab() {
|
|
|
|
|
val pageLinks =
|
|
|
|
@ -156,8 +151,8 @@ class ContextMenusTest {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Ignore("Temp disable intermittent failure - https://github.com/mozilla-mobile/fenix/issues/7687")
|
|
|
|
|
@Test
|
|
|
|
|
@Ignore("Disabled – Google Keyboard Clipboard overlay blocks the address bar: https://github.com/mozilla-mobile/fenix/issues/10586")
|
|
|
|
|
fun verifyContextCopyImageLocation() {
|
|
|
|
|
val pageLinks =
|
|
|
|
|
TestAssetHelper.getGenericAsset(mockWebServer, 4)
|
|
|
|
@ -177,7 +172,6 @@ class ContextMenusTest {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Ignore("Temp disable intermittent failure - https://github.com/mozilla-mobile/fenix/issues/7666")
|
|
|
|
|
@Test
|
|
|
|
|
fun verifyContextSaveImage() {
|
|
|
|
|
val pageLinks =
|
|
|
|
@ -202,7 +196,6 @@ class ContextMenusTest {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Ignore("Temp disable intermittent failure - https://github.com/mozilla-mobile/fenix/issues/7693")
|
|
|
|
|
@Test
|
|
|
|
|
fun verifyContextMixedVariations() {
|
|
|
|
|
val pageLinks =
|
|
|
|
@ -217,12 +210,12 @@ class ContextMenusTest {
|
|
|
|
|
// verifyPageContent(pageLinks.content)
|
|
|
|
|
longClickMatchingText("Link 1")
|
|
|
|
|
verifyLinkContextMenuItems(genericURL.url)
|
|
|
|
|
mDevice.pressBack()
|
|
|
|
|
dismissContentContextMenu(genericURL.url)
|
|
|
|
|
longClickMatchingText("test_link_image")
|
|
|
|
|
verifyLinkImageContextMenuItems(imageResource.url)
|
|
|
|
|
mDevice.pressBack()
|
|
|
|
|
dismissContentContextMenu(imageResource.url)
|
|
|
|
|
longClickMatchingText("test_no_link_image")
|
|
|
|
|
verifyNoLinkImageContextMenuItems("test_no_link_image")
|
|
|
|
|
verifyNoLinkImageContextMenuItems(imageResource.url)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|