Mes parties : la feuille se ferme à la reprise ; plan 1b : résultat

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pierre MARTIN
2026-11-03 20:50:33 +01:00
co-authored by Claude Opus 5.5
parent e3aaa0b3a3
commit d228d70387
3 changed files with 54 additions and 3 deletions
+9 -1
View File
@@ -1188,7 +1188,15 @@ step("mes parties");
await shot("4b-mes-parties");
const loads = await page.evaluate(() => performance.getEntriesByType("navigation").length);
await oldest.locator('[data-action="resume"]').click();
await page.waitForSelector("#games-veil", { state: "hidden" });
await page.waitForSelector("#games-veil", { state: "hidden", timeout: 20_000 }).catch(async () => {
const state = await page.evaluate(() => ({
message: document.querySelector("#games .games-message")?.textContent,
busy: document.body.classList.contains("busy"),
info: document.getElementById("info")?.textContent,
panel: !document.getElementById("panel-veil").hidden,
}));
throw new Error(`reprise bloquée : ${JSON.stringify(state)}`);
});
await page.waitForSelector("#panel");
const resumed = await savedJournal();
check(JSON.stringify(resumed) === JSON.stringify(finished), "la première partie n'a pas été reprise");