test(ui): cargo-routes counts the selection ring in the primitive total
Tests · UI / test (push) Has been cancelled
Tests · UI / test (pull_request) Successful in 2m4s

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) <noreply@anthropic.com>
This commit is contained in:
Ilia Denisov
2026-05-22 13:50:42 +02:00
parent 35e27c5aec
commit b07b8fb1c8
+3 -1
View File
@@ -457,8 +457,10 @@ test("cargo-routes flow: pick a destination, arrow appears, reload restores", as
lines: prims.filter((p) => p.kind === "line").length, 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({ await expect.poll(debugLineCount, { timeout: 15000 }).toEqual({
total: 7, total: 8,
lines: 3, lines: 3,
}); });