For #28069 fix disabled openPocketStoryItemTest UI test

fork
AndiAJ 2 years ago committed by mergify[bot]
parent cf70dd11ca
commit 826cbdbaae

@ -18,6 +18,7 @@ object Constants {
} }
const val SPEECH_RECOGNITION = "android.speech.action.RECOGNIZE_SPEECH" 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 LONG_CLICK_DURATION: Long = 5000
const val LISTS_MAXSWIPES: Int = 3 const val LISTS_MAXSWIPES: Int = 3
const val RETRY_COUNT = 3 const val RETRY_COUNT = 3

@ -16,6 +16,7 @@ import org.junit.Ignore
import org.junit.Rule import org.junit.Rule
import org.junit.Test import org.junit.Test
import org.mozilla.fenix.helpers.AndroidAssetDispatcher 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.HomeActivityTestRule
import org.mozilla.fenix.helpers.RetryTestRule import org.mozilla.fenix.helpers.RetryTestRule
import org.mozilla.fenix.helpers.TestAssetHelper import org.mozilla.fenix.helpers.TestAssetHelper
@ -259,7 +260,6 @@ class HomeScreenTest {
} }
} }
@Ignore("Failed, see: https://github.com/mozilla-mobile/fenix/issues/28069")
@Test @Test
fun openPocketStoryItemTest() { fun openPocketStoryItemTest() {
activityTestRule.activityRule.applySettingsExceptions { activityTestRule.activityRule.applySettingsExceptions {
@ -275,7 +275,7 @@ class HomeScreenTest {
scrollToPocketProvokingStories() scrollToPocketProvokingStories()
firstPocketStoryPublisher = getProvokingStoryPublisher(1) firstPocketStoryPublisher = getProvokingStoryPublisher(1)
}.clickPocketStoryItem(firstPocketStoryPublisher, 1) { }.clickPocketStoryItem(firstPocketStoryPublisher, 1) {
verifyUrl(firstPocketStoryPublisher) verifyUrl(POCKET_RECOMMENDED_STORIES_UTM_PARAM)
} }
} }

Loading…
Cancel
Save