[FIX] captures: frame import previews 02 and 02b from the preview top

The collapsed "Guide import" button lengthens the import card, which pushed
the encoding line of the preview below the window: the visibility guard of
captures 02 and 02b refused the image before any comparison. Both steps now
scroll the preview to the top edge of the surface, as 02c and 05b already
frame theirs. Checked: browser series, no capture left invisible; the
remaining reds are the manifest differences the audit lots expect.

--- FR ---

[FIX] captures : cadrer les aperçus 02 et 02b depuis le haut de l'aperçu

Le bouton replié « Guide import » allonge la carte de l'import, ce qui
poussait la ligne d'encodage de l'aperçu sous la fenêtre : la garde de
visibilité des captures 02 et 02b refusait l'image avant toute comparaison.
Les deux étapes font désormais défiler l'aperçu au bord haut de la surface,
comme 02c et 05b cadrent déjà les leurs. Vérifié : série navigateur, plus
aucune capture invisible ; restent les écarts au manifeste attendus.

Assisted-by: Claude Opus 5.5
This commit is contained in:
Mathieu Benoit 2026-10-26 23:10:30 -04:00
parent b2e3867aba
commit 6f6920ca2b

View file

@ -1188,6 +1188,9 @@ describe('le parcours par gestes, depuis un répertoire neuf', { timeout: DUREE
expect(apercu.querySelectorAll('[data-refusees] [data-ligne]').length).toBeGreaterThanOrEqual(1);
expect(apercu.querySelector('[data-commande="importer"]')).not.toBeNull();
await rienEcrit(avant, 'l’aperçu');
// L'image montre l'aperçu depuis son haut : la carte de l'import, que le
// guide replié allonge, ne le pousse pas sous la fenêtre.
await cadrerAuBord(apercu, 'haut');
await photographier(m, '02-import-apercu', { condition: ['[data-apercu] [data-encodage]', '[data-apercu] [data-separateur]'] });
});
@ -1209,6 +1212,7 @@ describe('le parcours par gestes, depuis un répertoire neuf', { timeout: DUREE
expect(montrees.length, accentuees.join(' | ')).toBeGreaterThan(0);
expect(apercu.textContent).not.toMatch(/\u{FFFD}|\u{C3}[\u{80}-\u{BF}]/u);
await rienEcrit(avant, 'l’aperçu en windows-1252');
await cadrerAuBord(apercu, 'haut');
await photographier(m, '02b-import-cp1252', { condition: ['[data-apercu] [data-encodage]', '[data-apercu] [data-fichier]'] });
});