test(launches): keep the fixture's toast recorder for the failure-message test

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Mazeyar Moeini FeizabadiandClaude Opus 5.5 committed 2026-11-06 20:10:34 +01:00
1 parent 5dd7f41436
commit 8da8c05eaf
1 file changed
+3 -1
+3 -1
View File
@@ -191,13 +191,14 @@ async function fixture(t) {
manager.register(missions); manager.register(missions);
missions.attachDataManager(manager); missions.attachDataManager(manager);
const toasts = [];
const controls = new ContextControls({ const controls = new ContextControls({
elements: {}, elements: {},
installations: {}, installations: {},
actions: { actions: {
getCockpit: () => null, getCockpit: () => null,
claimVisualAuthority: noop, claimVisualAuthority: noop,
showToast: noop, showToast: (message) => toasts.push(message),
setClearBusy: noop, setClearBusy: noop,
syncDetection: noop, syncDetection: noop,
scheduleLayout: noop, scheduleLayout: noop,
@@ -234,6 +235,7 @@ async function fixture(t) {
manager, manager,
controls, controls,
missions, missions,
toasts,
state, state,
camera, camera,
rosters, rosters,