Bug 1551490 - Fix tests when abuse reporting is enabled by default r=rpl

Differential Revision: https://phabricator.services.mozilla.com/D34174

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Rob Wu 2019-06-09 11:18:56 +00:00
parent 349969e334
commit cda23bce99
2 changed files with 5 additions and 4 deletions

View File

@ -255,7 +255,7 @@ add_task(async function testDetailOperations() {
let removeButton = panel.querySelector('[action="remove"]');
ok(!removeButton.hidden, "The remove button is visible");
let separator = panel.querySelector("panel-item-separator");
let separator = panel.querySelector("panel-item-separator:last-of-type");
ok(separator.hidden, "The separator is hidden");
let expandButton = panel.querySelector('[action="expand"]');

View File

@ -336,9 +336,10 @@ add_task(async function testKeyboardSupport() {
space();
await shown;
is(moreOptionsMenu.open, true, "The menu is open");
tab();
tab();
tab();
for (let it of moreOptionsMenu.querySelectorAll("panel-item:not([hidden])")) {
tab();
isFocused(it, `After tab, focus item "${it.getAttribute("action")}"`);
}
isFocused(expandButton, "The last item is focused");
tab();
is(moreOptionsMenu.open, false, "Tabbing out of the menu closes it");