Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

test(radio): settle both lanes in the paused Cockpit fixture

Sameh Khamis11802740816c
diff --git a/scripts/qa-radio.mjs b/scripts/qa-radio.mjs
index d3c26471c..4a3e41fb2 100644
--- a/scripts/qa-radio.mjs
+++ b/scripts/qa-radio.mjs
@@ -2036,6 +2036,11 @@ async function main() {
// qa-cockpit-utility exercises scheduling with the real controller.
manager.cockpitView.scheduleContextLayout();
await new Promise((resolve) => requestAnimationFrame(() => requestAnimationFrame(resolve)));
+ // The paused synthetic controller also needs the accordion pass after
+ // the Context/HUD obstacle rectangles have settled. Measuring the old
+ // corridor here races the left lane against the newly visible card.
+ manager._syncLeftPanelAdaptiveLayout();
+ await new Promise((resolve) => requestAnimationFrame(() => requestAnimationFrame(resolve)));
};
const prior = {
cockpit: document.body.classList.contains('cockpit-mode'),