From 1615e5a149acbaed6e9395ddb9775f96d95e4728 Mon Sep 17 00:00:00 2001 From: yetone Date: Fri, 6 Nov 2026 16:08:12 +0800 Subject: [PATCH] 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. --- internal/gui/tests/routing-answered-still.test.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/gui/tests/routing-answered-still.test.cjs b/internal/gui/tests/routing-answered-still.test.cjs index c39316120..3840ba0b6 100644 --- a/internal/gui/tests/routing-answered-still.test.cjs +++ b/internal/gui/tests/routing-answered-still.test.cjs @@ -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, }));