diff options
Diffstat (limited to 'tests/gallery-probes/probe-fams.mjs')
| -rw-r--r-- | tests/gallery-probes/probe-fams.mjs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/gallery-probes/probe-fams.mjs b/tests/gallery-probes/probe-fams.mjs index 993d22d..c1b5f9d 100644 --- a/tests/gallery-probes/probe-fams.mjs +++ b/tests/gallery-probes/probe-fams.mjs @@ -71,17 +71,17 @@ try { // Default is the shipped gold, unchanged until a chip is clicked. It reads the // same as the amber family's --scr-hi because --gold-hi IS #ffbe54 — which is // what makes the amber default pixel-identical rather than a near-miss. - const kpInk0 = await evl(`getComputedStyle(document.querySelector('#card-R57 .kp-pad text')).fill`); + const kpInk0 = await evl(`getComputedStyle(document.querySelector('#card-R57 .dupre-kp-pad text')).fill`); ok('R57 default ink = gold-hi', kpInk0 === 'rgb(255, 190, 84)', kpInk0); // vfd recolors both the ink and the window behind it — a screen is not just its text await evl(`document.querySelector('#card-R57 .fc[title="vfd"]').click()`); - const kpInk1 = await evl(`getComputedStyle(document.querySelector('#card-R57 .kp-pad text')).fill`); + const kpInk1 = await evl(`getComputedStyle(document.querySelector('#card-R57 .dupre-kp-pad text')).fill`); ok('R57 vfd chip recolors the ink to marquee cyan', kpInk1 === 'rgb(99, 230, 200)', kpInk1); - /* .kp-win, not the first rect on the pad — that one is the faceplate, and + /* .dupre-kp-win, not the first rect on the pad — that one is the faceplate, and reading it made this check report the plate's colour and fail for the wrong reason. */ - const kpBg = await evl(`getComputedStyle(document.querySelector('#card-R57 .kp-win')).fill`); + const kpBg = await evl(`getComputedStyle(document.querySelector('#card-R57 .dupre-kp-win')).fill`); ok('R57 vfd chip recolors the window too', kpBg === 'rgb(6, 16, 13)', kpBg); ok('no exceptions after chip clicks', events.filter(e => e.method === 'Runtime.exceptionThrown').length === 0); |
