From 753380ee99d6af971bc3a66145961d72ddcb200a Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 12 Jul 2026 20:56:15 -0500 Subject: test(gallery): repair stale probe assertions The committed probes asserted the pre-sprint gallery: default size 3 (now 2/M since 70507b7) and five .famchips rows (card 01's option capsules reuse the class, so six exist). The zoom test now clicks 3x explicitly instead of assuming it as the default, and the family count filters to rows labeled 'screen' so future option-group cards don't break it. --- tests/gallery-probes/probe.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/gallery-probes/probe.mjs') diff --git a/tests/gallery-probes/probe.mjs b/tests/gallery-probes/probe.mjs index 457ecf3..17b3d73 100644 --- a/tests/gallery-probes/probe.mjs +++ b/tests/gallery-probes/probe.mjs @@ -65,12 +65,13 @@ try { const errs = events.filter(e => e.method === 'Runtime.exceptionThrown'); ok('no exceptions on load', errs.length === 0, errs.map(e => e.params.exceptionDetails?.exception?.description).join('; ').slice(0, 200)); - // 1. defaults: size=3, 84 cards - ok('default size 3', await evl(`document.body.dataset.size`) === '3'); + // 1. defaults: size=2 (M), card count + ok('default size 2', await evl(`document.body.dataset.size`) === '2'); const cards = await evl(`document.querySelectorAll('.card').length`); ok('109 cards', cards === 109, `got ${cards}`); // 2. zoom actually scales: card visual width at 3x vs 1x + await evl(`document.querySelector('.szbar .key[data-sz="3"]').click()`); const w3 = await evl(`document.querySelector('.card').getBoundingClientRect().width`); await evl(`document.querySelector('.szbar .key[data-sz="1"]').click()`); const w1 = await evl(`document.querySelector('.card').getBoundingClientRect().width`); -- cgit v1.2.3