Tests navigateur : bilan en page, et fin-de-partie.mjs (1m)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pierre MARTIN
2026-11-23 16:55:03 +01:00
co-authored by Claude Opus 5.5
parent 2a8d14d02b
commit d74e70f02b
11 changed files with 672 additions and 77 deletions
+6 -1
View File
@@ -57,7 +57,12 @@ export async function hiddenUnderActionBar(target) {
};
const bars = [...document.querySelectorAll("body *")].filter((el) => {
const style = getComputedStyle(el);
return style.position === "sticky" && style.bottom !== "auto" && shown(el);
// Une barre collée en bas : sticky, ou fixe et marquée
// .action-bar (la barre du bilan, étape 1m).
const stuck =
style.position === "sticky" ||
(style.position === "fixed" && el.classList.contains("action-bar"));
return stuck && style.bottom !== "auto" && shown(el);
});
const describe = (el) =>
el.id