Bug 1565555 - Set pref to enable What's New panel by default r=andreio

Differential Revision: https://phabricator.services.mozilla.com/D43502

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ed Lee 2019-08-29 14:16:41 +00:00
parent dd6deca547
commit 75a5f21f80
2 changed files with 6 additions and 6 deletions

View File

@ -1337,7 +1337,7 @@ pref("browser.newtabpage.activity-stream.discoverystream.spocs-endpoint", "");
pref("trailhead.firstrun.branches", "join-supercharge");
// The pref that controls if the What's New panel is enabled.
pref("browser.messaging-system.whatsNewPanel.enabled", false);
pref("browser.messaging-system.whatsNewPanel.enabled", true);
// Whether to use Messaging System to add a badge to the FxA toolbar button
pref("browser.messaging-system.fxatoolbarbadge.enabled", true);

View File

@ -826,16 +826,16 @@ add_task(async function check_hasAccessedFxAPanel() {
add_task(async function check_isWhatsNewPanelEnabled() {
is(
await ASRouterTargeting.Environment.isWhatsNewPanelEnabled,
false,
"Not enabled yet"
true,
"Enabled by default"
);
await pushPrefs(["browser.messaging-system.whatsNewPanel.enabled", true]);
await pushPrefs(["browser.messaging-system.whatsNewPanel.enabled", false]);
is(
await ASRouterTargeting.Environment.isWhatsNewPanelEnabled,
true,
"Should update based on pref"
false,
"Should update based on pref, e.g., for holdback"
);
});