diff --git a/tests/browser/retours-joueurs.mjs b/tests/browser/retours-joueurs.mjs index 4934dd7..f241696 100644 --- a/tests/browser/retours-joueurs.mjs +++ b/tests/browser/retours-joueurs.mjs @@ -107,7 +107,10 @@ async function startFrom(page, position) { const play = document.getElementById("position-play"); return !play.hidden && !play.disabled; }); - await page.click("#position-play"); + await page.click("#position-play", { timeout: 15_000 }).catch(async (error) => { + await page.screenshot({ path: `${dir}/${browserName}-bloque.png` }).catch(() => {}); + throw error; + }); await until( page, "partie commencée", @@ -149,6 +152,8 @@ async function numberProblems(page, selector) { /** Les règles sur l'écran courant, dans chaque taille, et sa capture * (Chromium). */ async function checkScreen(page, theme, name, selector, settle = async () => {}) { + // Le bandeau « Reprendre l'ancienne » (10 s) n'est pas le sujet. + await until(page, "bandeau parti", () => document.getElementById("banner").hidden, null, 15_000); for (const size of SIZES) { await page.setViewportSize(size); await sleep(300);