test(client): live atlas generation-overlay inspection scenario (#960)

atlas_gen_open opens the real atlas app via HudGroups, navigates to GJ71c's
regional screen, and enables the Layer-1 overlays — exercising the production
opener + the live request→cascade→render pipeline against a --test-mode server
(SR_LIVE=1). Capture with: tests/run-visual --screenshot atlas_gen_open.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-25 10:09:48 +02:00
co-authored by Claude Opus 4.7
parent 6134296840
commit 89596dbb87
2 changed files with 29 additions and 0 deletions
+25
View File
@@ -110,6 +110,31 @@ func apply_setup(scenario_name: String, tree_root: Node) -> bool:
indicator.position = Vector2(370.0, 240.0) # centered at 960x540
indicator.start("GENERATING LAYER 1")
"atlas_gen_open":
# #960 live inspection: open the actual atlas app through HudGroups (the
# production opener), navigate to GJ71c's regional screen, and enable the
# generation overlays — exercises the opener + the live request → cascade
# → render pipeline against a connected server (SR_LIVE=1).
var hud_groups: Node = tree_root.get_node("/root/HudGroups")
var registry: Node = tree_root.get_node("/root/ImplantRegistry")
hud_groups.open_app("implant/map")
var app: Variant = registry.get_app_instance("implant/map")
if app == null:
push_warning("VisualScenarios: atlas app not instantiated")
return true
var body := {
"body_id": "GJ71c",
"proper_name": "Threshold",
"terrain_reference": "wiki/star-systems/GJ-71/bodies/GJ71c/heightmap.png",
}
app.nav.push(
"regional", {"body": body, "system": {"system_id": "GJ 71", "proper_name": "GJ 71"}}
)
var viewer: Variant = app._regional_screen._viewer
viewer.set_overlay_visible("gen_l1_rivers", true)
viewer.set_overlay_visible("gen_l1_basins", true)
viewer.set_overlay_visible("gen_l1_attractors", true)
_:
push_warning("VisualScenarios: unknown scenario '%s'" % scenario_name)
return false
+4
View File
@@ -72,6 +72,10 @@
"implant_pending": {
"ticks": 1,
"description": "ImplantPending — diegetic Layer-1 generating indicator (#960)"
},
"atlas_gen_open": {
"ticks": 240,
"description": "Live: real atlas opener (HudGroups) + GJ71c Layer-1 overlays (#960)"
}
},
"flows": {