From b07b8fb1c8045d87563d3dfa3772c2ffc633b786 Mon Sep 17 00:00:00 2001 From: Ilia Denisov Date: Fri, 22 May 2026 13:50:42 +0200 Subject: [PATCH] test(ui): cargo-routes counts the selection ring in the primitive total The F4 selection ring is a real map primitive. The cargo-route flow has the source planet selected, so the total primitive count is 8 (7 + the ring circle), not 7; the line count (3) is unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) --- ui/frontend/tests/e2e/cargo-routes.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/frontend/tests/e2e/cargo-routes.spec.ts b/ui/frontend/tests/e2e/cargo-routes.spec.ts index e6189b4..49caf98 100644 --- a/ui/frontend/tests/e2e/cargo-routes.spec.ts +++ b/ui/frontend/tests/e2e/cargo-routes.spec.ts @@ -457,8 +457,10 @@ test("cargo-routes flow: pick a destination, arrow appears, reload restores", as lines: prims.filter((p) => p.kind === "line").length, }; }); + // `total` also counts the selected source planet's selection ring + // (F4 — one circle), so it is one more than the planet + line prims. await expect.poll(debugLineCount, { timeout: 15000 }).toEqual({ - total: 7, + total: 8, lines: 3, });