diff --git a/app/src/androidTest/java/org/mozilla/fenix/helpers/Constants.kt b/app/src/androidTest/java/org/mozilla/fenix/helpers/Constants.kt index d0e69cb86f..f404e990ee 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/helpers/Constants.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/helpers/Constants.kt @@ -18,6 +18,7 @@ object Constants { } const val SPEECH_RECOGNITION = "android.speech.action.RECOGNIZE_SPEECH" + const val POCKET_RECOMMENDED_STORIES_UTM_PARAM = "utm_source=pocket-newtab-android" const val LONG_CLICK_DURATION: Long = 5000 const val LISTS_MAXSWIPES: Int = 3 const val RETRY_COUNT = 3 diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/HomeScreenTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/HomeScreenTest.kt index 74d3df4321..d293993eb7 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/HomeScreenTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/HomeScreenTest.kt @@ -16,6 +16,7 @@ import org.junit.Ignore import org.junit.Rule import org.junit.Test import org.mozilla.fenix.helpers.AndroidAssetDispatcher +import org.mozilla.fenix.helpers.Constants.POCKET_RECOMMENDED_STORIES_UTM_PARAM import org.mozilla.fenix.helpers.HomeActivityTestRule import org.mozilla.fenix.helpers.RetryTestRule import org.mozilla.fenix.helpers.TestAssetHelper @@ -259,7 +260,6 @@ class HomeScreenTest { } } - @Ignore("Failed, see: https://github.com/mozilla-mobile/fenix/issues/28069") @Test fun openPocketStoryItemTest() { activityTestRule.activityRule.applySettingsExceptions { @@ -275,7 +275,7 @@ class HomeScreenTest { scrollToPocketProvokingStories() firstPocketStoryPublisher = getProvokingStoryPublisher(1) }.clickPocketStoryItem(firstPocketStoryPublisher, 1) { - verifyUrl(firstPocketStoryPublisher) + verifyUrl(POCKET_RECOMMENDED_STORIES_UTM_PARAM) } }