зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1613645 - wait for translation before checking strings in urlbar interventions tests. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D61831 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
ceda99bbf7
Коммит
cc6f1ab8cd
|
@ -103,6 +103,7 @@ async function checkIntervention({
|
|||
// Do a search that triggers the tip.
|
||||
let [result, element] = await awaitTip(searchString);
|
||||
Assert.strictEqual(result.payload.type, tip);
|
||||
await element.ownerDocument.l10n.translateFragment(element);
|
||||
|
||||
let actualTitle = element._elements.get("title").textContent;
|
||||
if (typeof title == "string") {
|
||||
|
|
|
@ -230,8 +230,8 @@ async function doUpdateTest({
|
|||
} = {}) {
|
||||
// Do a search that triggers the tip.
|
||||
let [result, element] = await awaitTip(searchString);
|
||||
|
||||
Assert.strictEqual(result.payload.type, tip, "Tip type");
|
||||
await element.ownerDocument.l10n.translateFragment(element);
|
||||
|
||||
let actualTitle = element._elements.get("title").textContent;
|
||||
if (typeof title == "string") {
|
||||
|
|
Загрузка…
Ссылка в новой задаче