From a9831096f133f2f29d20ad57fee5bc03f56232ae Mon Sep 17 00:00:00 2001 From: Simon Pieters Date: Mon, 25 Oct 2021 23:30:11 +0200 Subject: [PATCH] Update regression test for aria-hidden --- test/tests/menubar_menubar-editor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/tests/menubar_menubar-editor.js b/test/tests/menubar_menubar-editor.js index 7b9b4d2bbe..84a4e0586f 100644 --- a/test/tests/menubar_menubar-editor.js +++ b/test/tests/menubar_menubar-editor.js @@ -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;