From 1637413f71be73ced77b0b3c835ddda3a6bc0afa Mon Sep 17 00:00:00 2001 From: Howard Edwards Date: Sat, 27 Jul 2024 18:51:32 -0400 Subject: [PATCH] Regression Tests: Enable `disclosure_navigation.js` test to scroll to element and click in `executeScript` context (pull #3059) Additional changes to resolve issue #2996. --- test/tests/disclosure_navigation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tests/disclosure_navigation.js b/test/tests/disclosure_navigation.js index 228e452f18..1197851371 100644 --- a/test/tests/disclosure_navigation.js +++ b/test/tests/disclosure_navigation.js @@ -75,9 +75,9 @@ ariaTest( await buttons[b].click(); await t.context.session.executeScript(function () { const link = arguments[0]; - link.scrollIntoView({ block: 'center' }); + link.scrollIntoView({ behavior: 'smooth', block: 'nearest' }); + link.click(); }, links[l]); - await links[l].click(); t.is( await links[l].getAttribute('aria-current'),