When a test fails and asks for a screenshot, it seems that in some conditions, the browser has already navigated to the blank page when capturing the screenshot, resulting in a useless blank screenshot. With this commit, all the futures are awaited to avoid this race condition. closes odoo/odoo#84566 X-original-commit: 37a7b81c28a7ad7c4f225e1463df96bbaf2d5c8f Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>