From 387ef35fff90b892325f366af04075ffd80a0a4f Mon Sep 17 00:00:00 2001 From: Howard Edwards Date: Thu, 25 Apr 2024 14:23:15 -0500 Subject: [PATCH] Update disclosure_navigation.js test > "aria-current" attribute on links to scroll to links before click --- test/tests/disclosure_navigation.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/tests/disclosure_navigation.js b/test/tests/disclosure_navigation.js index a12d64da3d..228e452f18 100644 --- a/test/tests/disclosure_navigation.js +++ b/test/tests/disclosure_navigation.js @@ -73,6 +73,10 @@ ariaTest( for (let l = 0; l < links.length; l++) { await buttons[b].click(); + await t.context.session.executeScript(function () { + const link = arguments[0]; + link.scrollIntoView({ block: 'center' }); + }, links[l]); await links[l].click(); t.is(