зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1421213 - Fix tests broken due to simulateClickLink changes. r=nchevobbe
MozReview-Commit-ID: 6JYBSzgMzR --HG-- extra : rebase_source : 1c0ccaec5f6907f412a6320dc6dc1a9a780e48a3
This commit is contained in:
Родитель
87efa833ab
Коммит
9d163b749f
|
@ -101,7 +101,7 @@ async function navigateAndCheckForWarningMessage({name, text, url}, hud) {
|
|||
|
||||
let learnMoreNode = node.querySelector(".learn-more-link");
|
||||
ok(learnMoreNode, `There is a "Learn more" link`);
|
||||
const navigatedLink = await simulateLinkClick(learnMoreNode);
|
||||
is(navigatedLink, LEARN_MORE_URI,
|
||||
const navigationResponse = await simulateLinkClick(learnMoreNode);
|
||||
is(navigationResponse.link, LEARN_MORE_URI,
|
||||
"Click on the learn more link navigates the user to the expected url");
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ async function navigateAndCheckWarningMessage({url, name, text}, hud) {
|
|||
|
||||
let learnMoreNode = node.querySelector(".learn-more-link");
|
||||
ok(learnMoreNode, `There is a "Learn more" link`);
|
||||
const navigatedLink = await simulateLinkClick(learnMoreNode);
|
||||
is(navigatedLink, LEARN_MORE_URI,
|
||||
const navigationResponse = await simulateLinkClick(learnMoreNode);
|
||||
is(navigationResponse.link, LEARN_MORE_URI,
|
||||
"Click on the learn more link navigates the user to the expected url");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче