diff --git a/tests/backstop/engine_scripts/puppet/clickAndHoverHelper.js b/tests/backstop/engine_scripts/puppet/clickAndHoverHelper.js index 81e0c9b37..b80431cc9 100644 --- a/tests/backstop/engine_scripts/puppet/clickAndHoverHelper.js +++ b/tests/backstop/engine_scripts/puppet/clickAndHoverHelper.js @@ -6,24 +6,24 @@ module.exports = async (page, scenario) => { if (hoverSelector) { for (const hoverSelectorIndex of [].concat(hoverSelector)) { - await page.waitFor(hoverSelectorIndex); + await page.waitForTimeout(hoverSelectorIndex); await page.hover(hoverSelectorIndex); } } if (clickSelector) { for (const clickSelectorIndex of [].concat(clickSelector)) { - await page.waitFor(clickSelectorIndex); + await page.waitForTimeout(clickSelectorIndex); await page.click(clickSelectorIndex); } } if (postInteractionWait) { - await page.waitFor(postInteractionWait); + await page.waitForTimeout(postInteractionWait); } if (scrollToSelector) { - await page.waitFor(scrollToSelector); + await page.waitForTimeout(scrollToSelector); await page.evaluate(scrollToSelector => { document.querySelector(scrollToSelector).scrollIntoView(); }, scrollToSelector);