diff --git a/test/integration/test_utils.mjs b/test/integration/test_utils.mjs index c49cb1daa..4e7d28e00 100644 --- a/test/integration/test_utils.mjs +++ b/test/integration/test_utils.mjs @@ -135,7 +135,7 @@ function getSelector(id) { async function getRect(page, selector) { // In Chrome something is wrong when serializing a `DomRect`, // so we extract the values and return them ourselves. - await page.waitForSelector(selector); + await page.waitForSelector(selector, { visible: true }); return page.$eval(selector, el => { const { x, y, width, height } = el.getBoundingClientRect(); return { x, y, width, height };