Bug 1880497 - Create TestSetup helper: Test classes M-N

fenix/125.0
oana.horvath 4 months ago committed by mergify[bot]
parent edc60d77fd
commit b51accb66f

@ -5,17 +5,11 @@
package org.mozilla.fenix.ui package org.mozilla.fenix.ui
import androidx.core.net.toUri import androidx.core.net.toUri
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.uiautomator.UiDevice
import mozilla.components.concept.engine.utils.EngineReleaseChannel import mozilla.components.concept.engine.utils.EngineReleaseChannel
import okhttp3.mockwebserver.MockWebServer
import org.junit.After
import org.junit.Before
import org.junit.Rule import org.junit.Rule
import org.junit.Test import org.junit.Test
import org.mozilla.fenix.customannotations.SmokeTest import org.mozilla.fenix.customannotations.SmokeTest
import org.mozilla.fenix.ext.components import org.mozilla.fenix.ext.components
import org.mozilla.fenix.helpers.AndroidAssetDispatcher
import org.mozilla.fenix.helpers.AppAndSystemHelper.assertNativeAppOpens import org.mozilla.fenix.helpers.AppAndSystemHelper.assertNativeAppOpens
import org.mozilla.fenix.helpers.AppAndSystemHelper.assertYoutubeAppOpens import org.mozilla.fenix.helpers.AppAndSystemHelper.assertYoutubeAppOpens
import org.mozilla.fenix.helpers.AppAndSystemHelper.runWithCondition import org.mozilla.fenix.helpers.AppAndSystemHelper.runWithCondition
@ -25,6 +19,8 @@ import org.mozilla.fenix.helpers.HomeActivityIntentTestRule
import org.mozilla.fenix.helpers.MatcherHelper import org.mozilla.fenix.helpers.MatcherHelper
import org.mozilla.fenix.helpers.TestAssetHelper import org.mozilla.fenix.helpers.TestAssetHelper
import org.mozilla.fenix.helpers.TestHelper import org.mozilla.fenix.helpers.TestHelper
import org.mozilla.fenix.helpers.TestHelper.mDevice
import org.mozilla.fenix.helpers.TestSetup
import org.mozilla.fenix.ui.robots.browserScreen import org.mozilla.fenix.ui.robots.browserScreen
import org.mozilla.fenix.ui.robots.clickContextMenuItem import org.mozilla.fenix.ui.robots.clickContextMenuItem
import org.mozilla.fenix.ui.robots.clickPageObject import org.mozilla.fenix.ui.robots.clickPageObject
@ -32,28 +28,11 @@ import org.mozilla.fenix.ui.robots.homeScreen
import org.mozilla.fenix.ui.robots.longClickPageObject import org.mozilla.fenix.ui.robots.longClickPageObject
import org.mozilla.fenix.ui.robots.navigationToolbar import org.mozilla.fenix.ui.robots.navigationToolbar
class MainMenuTest { class MainMenuTest : TestSetup() {
private lateinit var mDevice: UiDevice
private lateinit var mockWebServer: MockWebServer
@get:Rule @get:Rule
val activityTestRule = val activityTestRule =
HomeActivityIntentTestRule.withDefaultSettingsOverrides(translationsEnabled = true) HomeActivityIntentTestRule.withDefaultSettingsOverrides(translationsEnabled = true)
@Before
fun setUp() {
mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation())
mockWebServer = MockWebServer().apply {
dispatcher = AndroidAssetDispatcher()
start()
}
}
@After
fun tearDown() {
mockWebServer.shutdown()
}
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/233849 // TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/233849
@Test @Test
fun verifyTabMainMenuItemsTest() { fun verifyTabMainMenuItemsTest() {

@ -4,23 +4,17 @@
package org.mozilla.fenix.ui package org.mozilla.fenix.ui
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.uiautomator.UiDevice
import mozilla.components.browser.state.store.BrowserStore
import mozilla.components.concept.engine.mediasession.MediaSession import mozilla.components.concept.engine.mediasession.MediaSession
import okhttp3.mockwebserver.MockWebServer
import org.junit.After
import org.junit.Before
import org.junit.Rule import org.junit.Rule
import org.junit.Test import org.junit.Test
import org.mozilla.fenix.customannotations.SmokeTest import org.mozilla.fenix.customannotations.SmokeTest
import org.mozilla.fenix.ext.components
import org.mozilla.fenix.helpers.AndroidAssetDispatcher
import org.mozilla.fenix.helpers.HomeActivityTestRule import org.mozilla.fenix.helpers.HomeActivityTestRule
import org.mozilla.fenix.helpers.MatcherHelper.itemWithText import org.mozilla.fenix.helpers.MatcherHelper.itemWithText
import org.mozilla.fenix.helpers.RetryTestRule import org.mozilla.fenix.helpers.RetryTestRule
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.verifySnackBarText import org.mozilla.fenix.helpers.TestHelper.verifySnackBarText
import org.mozilla.fenix.helpers.TestSetup
import org.mozilla.fenix.ui.robots.browserScreen import org.mozilla.fenix.ui.robots.browserScreen
import org.mozilla.fenix.ui.robots.clickPageObject import org.mozilla.fenix.ui.robots.clickPageObject
import org.mozilla.fenix.ui.robots.homeScreen import org.mozilla.fenix.ui.robots.homeScreen
@ -33,36 +27,14 @@ import org.mozilla.fenix.ui.robots.notificationShade
* - a media notification icon is displayed on the homescreen for the tab playing media content * - a media notification icon is displayed on the homescreen for the tab playing media content
* Note: this test only verifies media notifications, not media itself * Note: this test only verifies media notifications, not media itself
*/ */
class MediaNotificationTest { class MediaNotificationTest : TestSetup() {
private lateinit var mockWebServer: MockWebServer
private lateinit var mDevice: UiDevice
@get:Rule @get:Rule
val activityTestRule = HomeActivityTestRule.withDefaultSettingsOverrides() val activityTestRule = HomeActivityTestRule.withDefaultSettingsOverrides()
private lateinit var browserStore: BrowserStore
@Rule @Rule
@JvmField @JvmField
val retryTestRule = RetryTestRule(3) val retryTestRule = RetryTestRule(3)
@Before
fun setUp() {
// Initializing this as part of class construction, below the rule would throw a NPE
// So we are initializing this here instead of in all tests.
browserStore = activityTestRule.activity.components.core.store
mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation())
mockWebServer = MockWebServer().apply {
dispatcher = AndroidAssetDispatcher()
start()
}
}
@After
fun tearDown() {
mockWebServer.shutdown()
}
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/1347033 // TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/1347033
@SmokeTest @SmokeTest
@Test @Test

@ -5,19 +5,14 @@
package org.mozilla.fenix.ui package org.mozilla.fenix.ui
import androidx.core.net.toUri import androidx.core.net.toUri
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.uiautomator.UiDevice
import okhttp3.mockwebserver.MockWebServer
import org.junit.After
import org.junit.Before
import org.junit.Rule import org.junit.Rule
import org.junit.Test import org.junit.Test
import org.mozilla.fenix.customannotations.SmokeTest import org.mozilla.fenix.customannotations.SmokeTest
import org.mozilla.fenix.helpers.AndroidAssetDispatcher
import org.mozilla.fenix.helpers.AppAndSystemHelper
import org.mozilla.fenix.helpers.AppAndSystemHelper.runWithSystemLocaleChanged import org.mozilla.fenix.helpers.AppAndSystemHelper.runWithSystemLocaleChanged
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.TestSetup
import org.mozilla.fenix.ui.robots.homeScreen import org.mozilla.fenix.ui.robots.homeScreen
import org.mozilla.fenix.ui.robots.navigationToolbar import org.mozilla.fenix.ui.robots.navigationToolbar
import java.util.Locale import java.util.Locale
@ -32,28 +27,10 @@ import java.util.Locale
* - Find in page * - Find in page
*/ */
class NavigationToolbarTest { class NavigationToolbarTest : TestSetup() {
private lateinit var mDevice: UiDevice
private lateinit var mockWebServer: MockWebServer
@get:Rule @get:Rule
val activityTestRule = HomeActivityTestRule.withDefaultSettingsOverrides() val activityTestRule = HomeActivityTestRule.withDefaultSettingsOverrides()
@Before
fun setUp() {
mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation())
mockWebServer = MockWebServer().apply {
dispatcher = AndroidAssetDispatcher()
start()
}
}
@After
fun tearDown() {
mockWebServer.shutdown()
AppAndSystemHelper.resetSystemLocaleToEnUS()
}
// TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/987326 // TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/987326
// Swipes the nav bar left/right to switch between tabs // Swipes the nav bar left/right to switch between tabs
@SmokeTest @SmokeTest

@ -5,28 +5,20 @@
package org.mozilla.fenix.ui package org.mozilla.fenix.ui
import android.content.Intent import android.content.Intent
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.uiautomator.UiDevice
import io.mockk.mockk import io.mockk.mockk
import mozilla.components.concept.sync.AuthType import mozilla.components.concept.sync.AuthType
import mozilla.components.service.fxa.FirefoxAccount import mozilla.components.service.fxa.FirefoxAccount
import okhttp3.mockwebserver.MockWebServer
import org.junit.After
import org.junit.Assert.assertTrue import org.junit.Assert.assertTrue
import org.junit.Before
import org.junit.Rule import org.junit.Rule
import org.junit.Test import org.junit.Test
import org.mozilla.fenix.components.TelemetryAccountObserver import org.mozilla.fenix.components.TelemetryAccountObserver
import org.mozilla.fenix.helpers.AndroidAssetDispatcher
import org.mozilla.fenix.helpers.Experimentation import org.mozilla.fenix.helpers.Experimentation
import org.mozilla.fenix.helpers.HomeActivityIntentTestRule import org.mozilla.fenix.helpers.HomeActivityIntentTestRule
import org.mozilla.fenix.helpers.RetryTestRule import org.mozilla.fenix.helpers.RetryTestRule
import org.mozilla.fenix.helpers.TestHelper.appContext import org.mozilla.fenix.helpers.TestHelper.appContext
import org.mozilla.fenix.helpers.TestSetup
class NimbusEventTest { class NimbusEventTest : TestSetup() {
private lateinit var mDevice: UiDevice
private lateinit var mockWebServer: MockWebServer
@get:Rule @get:Rule
val homeActivityTestRule = HomeActivityIntentTestRule.withDefaultSettingsOverrides() val homeActivityTestRule = HomeActivityIntentTestRule.withDefaultSettingsOverrides()
.withIntent( .withIntent(
@ -39,20 +31,6 @@ class NimbusEventTest {
@JvmField @JvmField
val retryTestRule = RetryTestRule(3) val retryTestRule = RetryTestRule(3)
@Before
fun setUp() {
mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation())
mockWebServer = MockWebServer().apply {
dispatcher = AndroidAssetDispatcher()
start()
}
}
@After
fun tearDown() {
mockWebServer.shutdown()
}
@Test @Test
fun homeScreenNimbusEventsTest() { fun homeScreenNimbusEventsTest() {
Experimentation.withHelper { Experimentation.withHelper {

@ -5,22 +5,18 @@
package org.mozilla.fenix.ui package org.mozilla.fenix.ui
import android.content.Intent import android.content.Intent
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.uiautomator.UiDevice
import mozilla.components.service.nimbus.messaging.FxNimbusMessaging import mozilla.components.service.nimbus.messaging.FxNimbusMessaging
import mozilla.components.service.nimbus.messaging.MessageData import mozilla.components.service.nimbus.messaging.MessageData
import mozilla.components.service.nimbus.messaging.Messaging import mozilla.components.service.nimbus.messaging.Messaging
import mozilla.components.service.nimbus.messaging.StyleData import mozilla.components.service.nimbus.messaging.StyleData
import okhttp3.mockwebserver.MockWebServer
import org.junit.After
import org.junit.Before import org.junit.Before
import org.junit.Rule import org.junit.Rule
import org.junit.Test import org.junit.Test
import org.mozilla.experiments.nimbus.Res import org.mozilla.experiments.nimbus.Res
import org.mozilla.fenix.FenixApplication import org.mozilla.fenix.FenixApplication
import org.mozilla.fenix.helpers.AndroidAssetDispatcher
import org.mozilla.fenix.helpers.HomeActivityIntentTestRule import org.mozilla.fenix.helpers.HomeActivityIntentTestRule
import org.mozilla.fenix.helpers.RetryTestRule import org.mozilla.fenix.helpers.RetryTestRule
import org.mozilla.fenix.helpers.TestSetup
import org.mozilla.fenix.nimbus.FxNimbus import org.mozilla.fenix.nimbus.FxNimbus
import org.mozilla.fenix.nimbus.HomeScreenSection import org.mozilla.fenix.nimbus.HomeScreenSection
import org.mozilla.fenix.nimbus.Homescreen import org.mozilla.fenix.nimbus.Homescreen
@ -32,10 +28,7 @@ import org.mozilla.fenix.ui.robots.homeScreen
* Verifies a message can be displayed with all of the correct components * Verifies a message can be displayed with all of the correct components
**/ **/
class NimbusMessagingHomescreenTest { class NimbusMessagingHomescreenTest : TestSetup() {
private lateinit var mDevice: UiDevice
private lateinit var mockWebServer: MockWebServer
private var messageButtonLabel = "CLICK ME" private var messageButtonLabel = "CLICK ME"
private var messageText = "Some Nimbus Messaging text" private var messageText = "Some Nimbus Messaging text"
private var messageTitle = "A Nimbus title" private var messageTitle = "A Nimbus title"
@ -54,7 +47,8 @@ class NimbusMessagingHomescreenTest {
val retryTestRule = RetryTestRule(3) val retryTestRule = RetryTestRule(3)
@Before @Before
fun setUp() { override fun setUp() {
super.setUp()
// Set up nimbus message // Set up nimbus message
FxNimbusMessaging.features.messaging.withInitializer { _, _ -> FxNimbusMessaging.features.messaging.withInitializer { _, _ ->
// FML generated objects. // FML generated objects.
@ -95,22 +89,11 @@ class NimbusMessagingHomescreenTest {
), ),
) )
} }
mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation())
mockWebServer = MockWebServer().apply {
dispatcher = AndroidAssetDispatcher()
start()
}
// refresh message store // refresh message store
val application = (homeActivityTestRule.activity.application as FenixApplication) val application = (homeActivityTestRule.activity.application as FenixApplication)
application.restoreMessaging() application.restoreMessaging()
} }
@After
fun tearDown() {
mockWebServer.shutdown()
}
@Test @Test
fun testNimbusMessageIsDisplayed() { fun testNimbusMessageIsDisplayed() {
// Checks the home screen card message is displayed correctly // Checks the home screen card message is displayed correctly

@ -5,8 +5,6 @@
package org.mozilla.fenix.ui package org.mozilla.fenix.ui
import android.content.Context import android.content.Context
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.uiautomator.UiDevice
import kotlinx.coroutines.test.runTest import kotlinx.coroutines.test.runTest
import mozilla.components.service.nimbus.messaging.FxNimbusMessaging import mozilla.components.service.nimbus.messaging.FxNimbusMessaging
import mozilla.components.service.nimbus.messaging.Messaging import mozilla.components.service.nimbus.messaging.Messaging
@ -20,6 +18,7 @@ import org.junit.Test
import org.mozilla.fenix.ext.components import org.mozilla.fenix.ext.components
import org.mozilla.fenix.helpers.HomeActivityIntentTestRule import org.mozilla.fenix.helpers.HomeActivityIntentTestRule
import org.mozilla.fenix.helpers.TestHelper import org.mozilla.fenix.helpers.TestHelper
import org.mozilla.fenix.helpers.TestSetup
/** /**
* This test is to test the integrity of messages hardcoded in the FML. * This test is to test the integrity of messages hardcoded in the FML.
@ -27,10 +26,8 @@ import org.mozilla.fenix.helpers.TestHelper
* It tests if the trigger expressions are valid, all the fields are complete * It tests if the trigger expressions are valid, all the fields are complete
* and a simple check if they are localized (don't contain `_`). * and a simple check if they are localized (don't contain `_`).
*/ */
class NimbusMessagingMessageTest { class NimbusMessagingMessageTest : TestSetup() {
private lateinit var feature: Messaging private lateinit var feature: Messaging
private lateinit var mDevice: UiDevice
private lateinit var context: Context private lateinit var context: Context
private val messaging private val messaging
@ -41,9 +38,9 @@ class NimbusMessagingMessageTest {
HomeActivityIntentTestRule.withDefaultSettingsOverrides(skipOnboarding = true) HomeActivityIntentTestRule.withDefaultSettingsOverrides(skipOnboarding = true)
@Before @Before
fun setUp() { override fun setUp() {
super.setUp()
context = TestHelper.appContext context = TestHelper.appContext
mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation())
feature = FxNimbusMessaging.features.messaging.value() feature = FxNimbusMessaging.features.messaging.value()
} }

@ -6,10 +6,8 @@ package org.mozilla.fenix.ui
import android.content.Context import android.content.Context
import android.os.Build import android.os.Build
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.rule.GrantPermissionRule import androidx.test.rule.GrantPermissionRule
import androidx.test.rule.GrantPermissionRule.grant import androidx.test.rule.GrantPermissionRule.grant
import androidx.test.uiautomator.UiDevice
import mozilla.components.service.nimbus.messaging.FxNimbusMessaging import mozilla.components.service.nimbus.messaging.FxNimbusMessaging
import org.json.JSONObject import org.json.JSONObject
import org.junit.Before import org.junit.Before
@ -18,15 +16,15 @@ import org.junit.Test
import org.mozilla.experiments.nimbus.HardcodedNimbusFeatures import org.mozilla.experiments.nimbus.HardcodedNimbusFeatures
import org.mozilla.fenix.helpers.HomeActivityIntentTestRule import org.mozilla.fenix.helpers.HomeActivityIntentTestRule
import org.mozilla.fenix.helpers.TestHelper import org.mozilla.fenix.helpers.TestHelper
import org.mozilla.fenix.helpers.TestHelper.mDevice
import org.mozilla.fenix.helpers.TestSetup
import org.mozilla.fenix.nimbus.FxNimbus import org.mozilla.fenix.nimbus.FxNimbus
import org.mozilla.fenix.ui.robots.notificationShade import org.mozilla.fenix.ui.robots.notificationShade
/** /**
* A UI test for testing the notification surface for Nimbus Messaging. * A UI test for testing the notification surface for Nimbus Messaging.
*/ */
class NimbusMessagingNotificationTest { class NimbusMessagingNotificationTest : TestSetup() {
private lateinit var mDevice: UiDevice
private lateinit var context: Context private lateinit var context: Context
private lateinit var hardcodedNimbus: HardcodedNimbusFeatures private lateinit var hardcodedNimbus: HardcodedNimbusFeatures
@ -43,9 +41,9 @@ class NimbusMessagingNotificationTest {
} }
@Before @Before
fun setUp() { override fun setUp() {
super.setUp()
context = TestHelper.appContext context = TestHelper.appContext
mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation())
} }
@Test @Test

@ -4,8 +4,6 @@
package org.mozilla.fenix.ui package org.mozilla.fenix.ui
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.uiautomator.UiDevice
import mozilla.components.service.nimbus.messaging.FxNimbusMessaging import mozilla.components.service.nimbus.messaging.FxNimbusMessaging
import mozilla.components.service.nimbus.messaging.Messaging import mozilla.components.service.nimbus.messaging.Messaging
import org.junit.Assert import org.junit.Assert
@ -17,6 +15,7 @@ import org.mozilla.experiments.nimbus.internal.NimbusException
import org.mozilla.fenix.ext.components import org.mozilla.fenix.ext.components
import org.mozilla.fenix.helpers.HomeActivityIntentTestRule import org.mozilla.fenix.helpers.HomeActivityIntentTestRule
import org.mozilla.fenix.helpers.TestHelper import org.mozilla.fenix.helpers.TestHelper
import org.mozilla.fenix.helpers.TestSetup
import org.mozilla.fenix.messaging.CustomAttributeProvider import org.mozilla.fenix.messaging.CustomAttributeProvider
/** /**
@ -26,9 +25,7 @@ import org.mozilla.fenix.messaging.CustomAttributeProvider
* - as much of the custom targeting and trigger attributes are recorded as possible. * - as much of the custom targeting and trigger attributes are recorded as possible.
* - we can run the Rust JEXL evaluator. * - we can run the Rust JEXL evaluator.
*/ */
class NimbusMessagingTriggerTest { class NimbusMessagingTriggerTest : TestSetup() {
private lateinit var mDevice: UiDevice
private lateinit var feature: Messaging private lateinit var feature: Messaging
private lateinit var nimbus: NimbusInterface private lateinit var nimbus: NimbusInterface
@ -36,8 +33,8 @@ class NimbusMessagingTriggerTest {
val activityTestRule = HomeActivityIntentTestRule.withDefaultSettingsOverrides(skipOnboarding = true) val activityTestRule = HomeActivityIntentTestRule.withDefaultSettingsOverrides(skipOnboarding = true)
@Before @Before
fun setUp() { override fun setUp() {
mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) super.setUp()
nimbus = TestHelper.appContext.components.nimbus.sdk nimbus = TestHelper.appContext.components.nimbus.sdk
feature = FxNimbusMessaging.features.messaging.value() feature = FxNimbusMessaging.features.messaging.value()
} }

@ -5,7 +5,6 @@
package org.mozilla.fenix.ui package org.mozilla.fenix.ui
import androidx.core.net.toUri import androidx.core.net.toUri
import org.junit.After
import org.junit.Rule import org.junit.Rule
import org.junit.Test import org.junit.Test
import org.mozilla.fenix.R import org.mozilla.fenix.R
@ -14,6 +13,7 @@ import org.mozilla.fenix.helpers.AppAndSystemHelper.setNetworkEnabled
import org.mozilla.fenix.helpers.HomeActivityTestRule import org.mozilla.fenix.helpers.HomeActivityTestRule
import org.mozilla.fenix.helpers.TestHelper.packageName import org.mozilla.fenix.helpers.TestHelper.packageName
import org.mozilla.fenix.helpers.TestHelper.verifyUrl import org.mozilla.fenix.helpers.TestHelper.verifyUrl
import org.mozilla.fenix.helpers.TestSetup
import org.mozilla.fenix.ui.robots.browserScreen import org.mozilla.fenix.ui.robots.browserScreen
import org.mozilla.fenix.ui.robots.homeScreen import org.mozilla.fenix.ui.robots.homeScreen
import org.mozilla.fenix.ui.robots.navigationToolbar import org.mozilla.fenix.ui.robots.navigationToolbar
@ -23,17 +23,11 @@ import org.mozilla.fenix.ui.robots.navigationToolbar
* *
*/ */
class NoNetworkAccessStartupTests { class NoNetworkAccessStartupTests : TestSetup() {
@get:Rule @get:Rule
val activityTestRule = HomeActivityTestRule.withDefaultSettingsOverrides(launchActivity = false) val activityTestRule = HomeActivityTestRule.withDefaultSettingsOverrides(launchActivity = false)
@After
fun tearDown() {
// Restoring network connection
setNetworkEnabled(true)
}
// Test running on beta/release builds in CI: // Test running on beta/release builds in CI:
// caution when making changes to it, so they don't block the builds // caution when making changes to it, so they don't block the builds
// Based on STR from https://github.com/mozilla-mobile/fenix/issues/16886 // Based on STR from https://github.com/mozilla-mobile/fenix/issues/16886

Loading…
Cancel
Save