diff --git a/frontend_tests/puppeteer_lib/common.js b/frontend_tests/puppeteer_lib/common.js index f9fff240a7..7ed2f5c351 100644 --- a/frontend_tests/puppeteer_lib/common.js +++ b/frontend_tests/puppeteer_lib/common.js @@ -390,7 +390,7 @@ class CommonUtils { // The method will only check that all the messages in the // messages array passed exist in the order they are passed. async check_messages_sent(page, table, messages) { - await page.waitForSelector("#" + table); + await page.waitForSelector("#" + table, {visible: true}); const rendered_messages = await this.get_rendered_messages(page, table); // We only check the last n messages because if we run