For #28069 fix disabled openPocketStoryItemTest UI test

This commit is contained in:
AndiAJ 2022-12-06 17:57:35 +02:00 committed by mergify[bot]
parent cf70dd11ca
commit 826cbdbaae
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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)
}
}