extends Node2D # Probe, not a test - presses Play on the main menu under the REAL # gl_compatibility renderer, which is the same path the web export takes # (WebGL2 == GLES3 compatibility). --headless uses a dummy renderer and so # cannot surface a failure that only happens once something actually has to # be rendered or a shader has to compile. # # bash tests/screenshot.sh res://tests/_web_play_probe.tscn /tmp/play.png 45 720x1280 var menu: Node var frames: int = 0 var pressed: bool = false func _ready() -> void: menu = load("res://MainMenu.tscn").instantiate() add_child(menu) func _process(_delta: float) -> void: frames += 1 if frames == 8 and not pressed: pressed = true print("PLAY_PROBE: pressing Play") menu._on_play_pressed() if frames == 30: var scene: Node = get_tree().current_scene print("PLAY_PROBE: current_scene=%s" % [scene.name if scene != null else ""])