From 6bb21db2cb730d29294c09baf01ccbbc98d891b6 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Sun, 24 May 2026 22:53:57 +0200 Subject: [PATCH] test(client): implant_pending visual scenario (#960) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ad-hoc capture scenario that overlays the ImplantPending "generating" indicator on the booted scene for visual sign-off — `tests/run-visual --screenshot implant_pending`. No golden committed; this is an inspection scenario, not a regression gate. Co-Authored-By: Claude Opus 4.7 (1M context) --- client/tests/visual_scenarios.gd | 16 ++++++++++++++++ tests/visual.json | 4 ++++ 2 files changed, 20 insertions(+) diff --git a/client/tests/visual_scenarios.gd b/client/tests/visual_scenarios.gd index 88add8ecf..2b14eb1b2 100644 --- a/client/tests/visual_scenarios.gd +++ b/client/tests/visual_scenarios.gd @@ -93,6 +93,22 @@ func apply_setup(scenario_name: String, tree_root: Node) -> bool: # player spawns at Hub (50,58). Captures real fog pipeline output. pass + "implant_pending": + # #960: overlay the diegetic Layer-1 "generating" indicator for + # visual sign-off. Loaded via load() — class_name isn't available + # in -s mode (per this file's header note). + var pending_script: GDScript = load("res://ui/implant/implant_pending.gd") + var theme_res: Resource = load("res://ui/implant/default_implant.tres") + var layer := CanvasLayer.new() + layer.layer = 100 + tree_root.add_child(layer) + var indicator: Control = pending_script.new() + indicator.name = "VisualImplantPending" + layer.add_child(indicator) + indicator.apply_implant_theme(theme_res) + indicator.position = Vector2(370.0, 240.0) # centered at 960x540 + indicator.start("GENERATING LAYER 1") + _: push_warning("VisualScenarios: unknown scenario '%s'" % scenario_name) return false diff --git a/tests/visual.json b/tests/visual.json index 4d7e92772..1686b8d17 100644 --- a/tests/visual.json +++ b/tests/visual.json @@ -68,6 +68,10 @@ "ticks": 10, "live": true, "description": "Live server: Hub spawn fog — real pipeline regression test" + }, + "implant_pending": { + "ticks": 1, + "description": "ImplantPending — diegetic Layer-1 generating indicator (#960)" } }, "flows": {