browser_accessibility_tree_audit_all.js (948B)
1 /* Any copyright is dedicated to the Public Domain. 2 * http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4 "use strict"; 5 6 /* global toggleMenuItem, TREE_FILTERS_MENU_ID */ 7 8 addA11YPanelTask( 9 `Test that Accessibility panel "All issues" audit doesn't return erroneous results`, 10 "https://example.com/browser/devtools/client/accessibility/test/browser/test_audit_all.html", 11 async env => { 12 const { doc, toolbox } = env; 13 info("Reload to have a clean state"); 14 // This is needed to reproduce the issue from Bug 1929891 15 await reloadBrowser(); 16 17 info(`Select the "All issues" item to run all audits at once`); 18 await toggleMenuItem(doc, toolbox.doc, TREE_FILTERS_MENU_ID, 1); 19 20 info("Check that there's only 1 element in the tree"); 21 await checkTreeState(doc, [ 22 { 23 role: "canvas", 24 name: `""text label`, 25 badges: ["text label"], 26 level: 1, 27 selected: true, 28 }, 29 ]); 30 } 31 );