Retours des premiers joueurs : pions blancs et noirs, numéros sur le cadre, flèches du tutoriel, jans #58

Manually merged
pierre merged 9 commits from retours-joueurs into main 2026-11-12 08:09:56 +00:00
Showing only changes of commit 5a13c40bbb - Show all commits
+6 -1
View File
@@ -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);