Bug 1928003 - [devtools] Avoid triggering a11y failure in browser_markup_tag_edit_long-classname.js. r=devtools-reviewers,ochameau.

The test was failing accessibility check because we're clicking
on the tag line. Since we're handling element selection just fine
with the keyboard, we don't need to have the line being a proper
target, so we can disable the check.

Differential Revision: https://phabricator.services.mozilla.com/D227923
This commit is contained in:
Nicolas Chevobbe 2024-11-07 09:54:30 +00:00
Родитель 57a1535604
Коммит 78ba690aa4
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -23,7 +23,7 @@ add_task(async function () {
// We trigger a click on the container which is not a button, so that would make the
// test fail on a11y_checks. Since we're handling element selection from the keyboard
// just fine, we can disable the accessibility check to avoid the test failure.
AccessibilityUtils.setEnv({ focusabeRule: false });
AccessibilityUtils.setEnv({ mustHaveAccessibleRule: false });
await clickContainer("div", inspector);
AccessibilityUtils.resetEnv();