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: preserve the layout pass in the synthetic Cockpit fixture

Sameh Khamis0431dbb05edc
diff --git a/scripts/qa-radio.mjs b/scripts/qa-radio.mjs
index 4c9edcd86..40f34240f 100644
--- a/scripts/qa-radio.mjs
+++ b/scripts/qa-radio.mjs
@@ -2031,6 +2031,10 @@ async function main() {
};
const waitForHudSettle = async () => {
await new Promise((resolve) => setTimeout(resolve, 560));
+ // The synthetic shell below stops the aircraft/context update loop.
+ // Restore its layout pass after the HUD fade before measuring geometry;
+ // qa-cockpit-utility exercises scheduling with the real controller.
+ manager.cockpitView.scheduleContextLayout();
await new Promise((resolve) => requestAnimationFrame(() => requestAnimationFrame(resolve)));
};
const prior = {