Bug 1654392 - Ensure the order of the search engine configuration is consistent, and add some more distribution tests. r=daleharvey

Differential Revision: https://phabricator.services.mozilla.com/D95022
This commit is contained in:
Mark Banner 2020-11-04 23:17:29 +00:00
parent 07f304d057
commit 9ad9fa5a59
2 changed files with 29 additions and 1 deletions

View File

@ -140,7 +140,7 @@ class SearchEngineSelector {
let result = [];
let failed = false;
try {
result = await this._remoteConfig.get();
result = await this._remoteConfig.get({ order: "id" });
} catch (ex) {
logConsole.error(ex);
failed = true;

View File

@ -514,6 +514,13 @@ for (const locale of ["en-US", "de"]) {
});
}
tests.push({
locale: "ru",
region: "RU",
distribution: "gmx",
test: engines => hasDefault(engines, "GMX Suche"),
});
tests.push({
locale: "en-GB",
distribution: "gmxcouk",
@ -528,6 +535,13 @@ tests.push({
hasEnginesFirst(engines, ["GMX Search"]),
});
tests.push({
locale: "ru",
region: "RU",
distribution: "gmxcouk",
test: engines => hasDefault(engines, "GMX Search"),
});
tests.push({
locale: "es",
distribution: "gmxes",
@ -542,6 +556,13 @@ tests.push({
hasEnginesFirst(engines, ["GMX Search"]),
});
tests.push({
locale: "ru",
region: "RU",
distribution: "gmxes",
test: engines => hasDefault(engines, "GMX - Búsqueda web"),
});
tests.push({
locale: "fr",
distribution: "gmxfr",
@ -556,6 +577,13 @@ tests.push({
hasEnginesFirst(engines, ["GMX Search"]),
});
tests.push({
locale: "ru",
region: "RU",
distribution: "gmxfr",
test: engines => hasDefault(engines, "GMX - Recherche web"),
});
tests.push({
locale: "ru",
distribution: "yandex-drp",