mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
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:
parent
349969e334
commit
cda23bce99
@ -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"]');
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user