Skip to content

Commit

Permalink
Update regression test for aria-hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan committed Oct 25, 2021
1 parent b81cf99 commit a983109
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/tests/menubar_menubar-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ const checkmarkVisible = async function (t, selector, index) {
function () {
const [selector, index] = arguments;
const checkmarkContent = window
.getComputedStyle(document.querySelectorAll(selector)[index], ':before')
.getComputedStyle(
document.querySelectorAll(`${selector} > [aria-hidden]`)[index],
':before'
)
.getPropertyValue('content');
if (checkmarkContent == 'none') {
return false;
Expand Down

0 comments on commit a983109

Please sign in to comment.