From cd9c61d7413256d0a7e0593a2c581000d441f9da Mon Sep 17 00:00:00 2001 From: Howard Edwards Date: Mon, 1 Jul 2024 16:03:02 -0400 Subject: [PATCH] Verify if 'instant' helps --- test/tests/disclosure_navigation.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/tests/disclosure_navigation.js b/test/tests/disclosure_navigation.js index b589479f2c..c9ce14fe87 100644 --- a/test/tests/disclosure_navigation.js +++ b/test/tests/disclosure_navigation.js @@ -69,17 +69,13 @@ ariaTest( const menus = await t.context.queryElements(t, ex.menuSelector); for (let b = 0; b < buttons.length; b++) { - await t.context.session.executeScript(function () { - const menu = arguments[0]; - menu.scrollIntoView({ behavior: 'smooth', block: 'nearest' }); - }, menus[b]); const links = await t.context.queryElements(t, 'a', menus[b]); for (let l = 0; l < links.length; l++) { await buttons[b].click(); await t.context.session.executeScript(function () { const link = arguments[0]; - link.scrollIntoView({ behavior: 'smooth', block: 'nearest' }); + link.scrollIntoView({ behavior: 'instant', block: 'nearest' }); }, links[l]); await links[l].click();