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) <noreply@anthropic.com>
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user