fix(ui): F8-12 — settle e2e regressions from the polish PR (#55)
Tests · UI / test (push) Has been cancelled
Tests · UI / test (pull_request) Successful in 3m25s

* state-binding.ts: normalise planet size by the engine's typical
  mid-range (`SIZE_NORMALIZER = 100`) so legacy fixtures recording
  Size in the hundreds do not blow up the world-unit disc and start
  overlapping neighbouring planets. The cube-root growth stays;
  Size-800 reads twice as big as Size-100.
* cargo-routes.spec.ts: retire the selection-ring CirclePrim from
  the expected primitive count (4 planets + 3 cargo arrow lines = 7).
* map-toggles.spec.ts: bombing-rings → planet outlines (the high-bit
  0xc… range is permanently empty); planet-names persist test waits
  for the renderer's debug providers and for the IndexedDB write to
  flush before reload.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Ilia Denisov
2026-05-28 00:14:14 +02:00
parent 680ebac919
commit 75a4211373
3 changed files with 38 additions and 17 deletions
+5 -3
View File
@@ -461,10 +461,12 @@ 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.
// F8-12 / #30 retired the selection-ring CirclePrim: selection is
// now drawn as an outline overlay around the planet disc, outside
// the primitive surface. Expected total = 4 planets + 3 cargo
// arrow lines.
await expect.poll(debugLineCount, { timeout: 15000 }).toEqual({
total: 8,
total: 7,
lines: 3,
});