From 75cf1e9437a4ca6294c48d31f3288ba520f1dd73 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 19 Aug 2024 21:42:21 +0200 Subject: [PATCH] TEST: without scrolling --- test/common/test-functions.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/common/test-functions.js b/test/common/test-functions.js index 996729bd00c4..285cf96f28b6 100644 --- a/test/common/test-functions.js +++ b/test/common/test-functions.js @@ -30,12 +30,15 @@ window.ph_find = function(sel) { window.ph_find_scroll_into_view = function(sel) { const el = window.ph_find(sel); + return el; + /* return new Promise(resolve => { el.scrollIntoView({ behaviour: 'instant', block: 'center', inline: 'center' }); // scrolling needs a little bit of time to stabilize, and it's not predictable // in particular, 'scrollend' is not reliably emitted window.setTimeout(() => resolve(el), 200); }); + */ }; window.ph_count = function(sel) {