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

No issue: disable TCP CFR in screenshots tests

This commit is contained in:
sv-ohorvath 2022-08-29 17:04:11 +03:00 committed by mergify[bot]
parent 890a950f66
commit cad6c64236

View File

@ -24,6 +24,7 @@ import org.junit.Test
import org.mozilla.fenix.HomeActivity import org.mozilla.fenix.HomeActivity
import org.mozilla.fenix.R import org.mozilla.fenix.R
import org.mozilla.fenix.helpers.AndroidAssetDispatcher import org.mozilla.fenix.helpers.AndroidAssetDispatcher
import org.mozilla.fenix.helpers.FeatureSettingsHelper
import org.mozilla.fenix.helpers.HomeActivityTestRule import org.mozilla.fenix.helpers.HomeActivityTestRule
import org.mozilla.fenix.helpers.TestAssetHelper import org.mozilla.fenix.helpers.TestAssetHelper
import org.mozilla.fenix.helpers.TestHelper.mDevice import org.mozilla.fenix.helpers.TestHelper.mDevice
@ -39,6 +40,7 @@ import tools.fastlane.screengrab.locale.LocaleTestRule
class MenuScreenShotTest : ScreenshotTest() { class MenuScreenShotTest : ScreenshotTest() {
private lateinit var mockWebServer: MockWebServer private lateinit var mockWebServer: MockWebServer
private lateinit var mDevice: UiDevice private lateinit var mDevice: UiDevice
private val featureSettingsHelper = FeatureSettingsHelper()
@Rule @Rule
@JvmField @JvmField
@ -54,10 +56,13 @@ class MenuScreenShotTest : ScreenshotTest() {
dispatcher = AndroidAssetDispatcher() dispatcher = AndroidAssetDispatcher()
start() start()
} }
featureSettingsHelper.setTCPCFREnabled(false)
} }
@After @After
fun tearDown() { fun tearDown() {
featureSettingsHelper.resetAllFeatureFlags()
mActivityTestRule.getActivity().finishAndRemoveTask() mActivityTestRule.getActivity().finishAndRemoveTask()
mockWebServer.shutdown() mockWebServer.shutdown()
} }