For #25110: Enable the messaging framework feature

(cherry picked from commit b22a34db2e)
This commit is contained in:
Arturo Mejia 2022-05-05 08:39:39 -04:00
parent 1188b58888
commit aa38ae9407
3 changed files with 9 additions and 20 deletions

View File

@ -105,5 +105,5 @@ object FeatureFlags {
/**
* Enables receiving from the messaging framework.
*/
val messagingFeature = Config.channel.isNightlyOrDebug
const val messagingFeature = true
}

View File

@ -4,17 +4,12 @@
package org.mozilla.fenix.gleanplumb
import io.mockk.every
import io.mockk.mockkObject
import io.mockk.spyk
import io.mockk.unmockkObject
import io.mockk.verify
import kotlinx.coroutines.ExperimentalCoroutinesApi
import mozilla.components.support.test.rule.MainCoroutineRule
import org.junit.Rule
import org.junit.Test
import org.mozilla.fenix.Config
import org.mozilla.fenix.FeatureFlags
import org.mozilla.fenix.components.AppStore
import org.mozilla.fenix.components.appstate.AppAction.MessagingAction
@ -28,13 +23,8 @@ class MessagingFeatureTest {
val store: AppStore = spyk(AppStore())
val binding = MessagingFeature(store)
mockkObject(FeatureFlags)
every { FeatureFlags.messagingFeature } returns true
binding.start()
verify { store.dispatch(MessagingAction.Evaluate) }
unmockkObject(Config)
}
}

View File

@ -160,6 +160,13 @@ features:
URGENT:
priority: 100
max-display-count: 10
messages:
default-browser:
text: default_browser_experiment_card_text
action: "MAKE_DEFAULT_BROWSER"
trigger: [ "I_AM_NOT_DEFAULT_BROWSER" ]
style: "DEFAULT"
button-label: preferences_set_as_default_browser
- channel: developer
value:
@ -170,15 +177,7 @@ features:
EXPIRES_QUICKLY:
priority: 100
max-display-count: 1
- channel: nightly
value:
messages:
default-browser:
text: default_browser_experiment_card_text
action: "MAKE_DEFAULT_BROWSER"
trigger: [ "I_AM_NOT_DEFAULT_BROWSER" ]
style: "DEFAULT"
button-label: preferences_set_as_default_browser
unified-search:
description: A feature allowing user to easily search for specified results directly in the search bar.
variables: