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.

Use a launch catalog fixture in Cockpit lifecycle QA

Sameh Khamis6bbfeae9f282
diff --git a/scripts/qa-cockpit-utility.mjs b/scripts/qa-cockpit-utility.mjs
index 48d350472..5c3829462 100644
--- a/scripts/qa-cockpit-utility.mjs
+++ b/scripts/qa-cockpit-utility.mjs
@@ -83,6 +83,17 @@ try {
});
return;
}
+ // Space Missions is toggled by the Context cancellation checks below.
+ // Its catalog is unrelated to aircraft/Cockpit behavior; keep the network
+ // error gate meaningful without depending on Launch Library availability.
+ if (url.origin === new URL(appUrl).origin && url.pathname === '/api/launches') {
+ request.respond({
+ status: 200,
+ contentType: 'application/json',
+ body: JSON.stringify({ results: [] }),
+ });
+ return;
+ }
// This harness verifies UI/lifecycle behavior, not DEM accuracy. Keep an
// unrelated upstream terrain outage out of the rendered interaction gate.
if (url.origin === new URL(appUrl).origin && url.pathname === '/api/terrain/heights') {