2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-15 18:12:54 +00:00

Bug 1807275 - Verify only the intent sent in emailLinkPWATest

This commit is contained in:
oana.horvath 2023-09-15 14:58:24 +03:00 committed by mergify[bot]
parent e0e7925bb9
commit 0e0596121e

View File

@ -16,6 +16,7 @@ import org.mozilla.fenix.helpers.MatcherHelper.itemWithResId
import org.mozilla.fenix.helpers.MatcherHelper.itemWithResIdAndText 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.TestHelper import org.mozilla.fenix.helpers.TestHelper
import org.mozilla.fenix.helpers.TestHelper.assertExternalAppOpens
import org.mozilla.fenix.helpers.TestHelper.assertNativeAppOpens import org.mozilla.fenix.helpers.TestHelper.assertNativeAppOpens
import org.mozilla.fenix.helpers.TestHelper.mDevice import org.mozilla.fenix.helpers.TestHelper.mDevice
import org.mozilla.fenix.ui.robots.addToHomeScreen import org.mozilla.fenix.ui.robots.addToHomeScreen
@ -58,7 +59,6 @@ class PwaTest {
} }
} }
@Ignore("Failing, see https://bugzilla.mozilla.org/show_bug.cgi?id=1807275")
@Test @Test
fun emailLinkPWATest() { fun emailLinkPWATest() {
navigationToolbar { navigationToolbar {
@ -71,7 +71,7 @@ class PwaTest {
}.openHomeScreenShortcut(shortcutTitle) { }.openHomeScreenShortcut(shortcutTitle) {
clickPageObject(itemContainingText("Email link")) clickPageObject(itemContainingText("Email link"))
clickPageObject(itemWithResIdAndText("android:id/button1", "OPEN")) clickPageObject(itemWithResIdAndText("android:id/button1", "OPEN"))
assertNativeAppOpens(GMAIL_APP, emailLink) assertExternalAppOpens(GMAIL_APP)
} }
} }