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:
abhinav 2018-01-17 20:53:30 +05:30
Родитель 87efa833ab
Коммит 9d163b749f
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -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");
}