Bug 1510678 - Change recommended addons for Firefox 64 CFR release

This commit is contained in:
Kate Hudson 2018-11-28 16:21:21 -05:00 коммит произвёл GitHub
Родитель 919e9c7303
Коммит d028c32829
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 9 добавлений и 6 удалений

Просмотреть файл

@ -195,6 +195,7 @@ const CFR_MESSAGES = [
{
id: "WIKIPEDIA_CONTEXT_MENU_SEARCH_3",
template: "cfr_doorhanger",
exclude: true,
content: {
bucket_id: "CFR_M1",
notification_text: {string_id: "cfr-doorhanger-extension-notification"},
@ -246,6 +247,7 @@ const CFR_MESSAGES = [
{
id: "REDDIT_ENHANCEMENT_3",
template: "cfr_doorhanger",
exclude: true,
content: {
bucket_id: "CFR_M1",
notification_text: {string_id: "cfr-doorhanger-extension-notification"},
@ -298,7 +300,7 @@ const CFR_MESSAGES = [
const CFRMessageProvider = {
getMessages() {
return CFR_MESSAGES;
return CFR_MESSAGES.filter(msg => !msg.exclude);
},
};
this.CFRMessageProvider = CFRMessageProvider;

Просмотреть файл

@ -5,15 +5,16 @@ const REGULAR_IDS = [
"FACEBOOK_CONTAINER",
"GOOGLE_TRANSLATE",
"YOUTUBE_ENHANCE",
"WIKIPEDIA_CONTEXT_MENU_SEARCH",
"REDDIT_ENHANCEMENT",
// These are excluded for now.
// "WIKIPEDIA_CONTEXT_MENU_SEARCH",
// "REDDIT_ENHANCEMENT",
];
describe("CFRMessageProvider", () => {
it("should have a total of 5 messages", () => {
assert.lengthOf(messages, 5);
it("should have a total of 3 messages", () => {
assert.lengthOf(messages, 3);
});
it("should have one message each for the five regular addons", () => {
it("should have one message each for the three regular addons", () => {
for (const id of REGULAR_IDS) {
const cohort3 = messages.find(msg => msg.id === `${id}_3`);
assert.ok(cohort3, `contains three day cohort for ${id}`);