diff --git a/test/common/test-functions.js b/test/common/test-functions.js index 996729bd00c..285cf96f28b 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) {