gui tests: routing-answered-still reads the account dot's pulse from ::after

763ea9438 moved the live account dot's pulse onto its ::after disk, and
routing-answered-still still counted a moving dot by the dot's own
animationName, so all 20 of its cases (both engines, five languages, two
widths) read 0 moving where 1 was.

Run via mote-run: routing-answered-still 20 of 20 ok, in a rerun of the
19 GUI files that were red in the 359-file Routing/fonts run. The other
18 fail the same way at 1c45645b5 (the commit before 763ea9438): 99
failures here, 101 there, on the same files. They get their own issues.
routing-rules-line was red 3 times here and 0 there, on 5s
waitForFunction timeouts in the rule editor, which the pulse doesn't
touch; the 359-file run had a different case of it red.
Broken by hand: none; the line read the old place.
This commit is contained in:
yetone
2026-11-06 16:08:16 +08:00
parent ff415f39cb
commit 1615e5a149
@@ -85,7 +85,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
// dot moves, and how many drawn wires flow and how many are lit
const stage = () => page.evaluate(() => ({
on: [...document.querySelectorAll(".rt-accts li.on")].map((li) => li.querySelector(".who")?.textContent + (li.classList.contains("now") ? ":now" : "")),
moving: [...document.querySelectorAll(".rt-accts li .dot")].filter((d) => getComputedStyle(d).animationName !== "none").length,
moving: [...document.querySelectorAll(".rt-accts li .dot")].filter((d) => getComputedStyle(d, "::after").animationName !== "none").length,
flowing: document.querySelectorAll(".rt-wires path.live[d]").length,
lit: document.querySelectorAll(".rt-wires path.lit[d]").length,
}));