test(scenes): ✅ Add screenshot capture test to verify rendering correctness and game state in scene tests
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
fad1257db6
commit
1d56b77d4f
1 changed files with 9 additions and 0 deletions
|
|
@ -33,6 +33,15 @@ func _ready() -> void:
|
|||
if main != null and main.has_method("change_scene"):
|
||||
main.change_scene("res://engine/scenes/menus/game_setup.tscn")
|
||||
await get_tree().create_timer(1.0).timeout
|
||||
elif _scene == "world_map":
|
||||
await get_tree().create_timer(0.5).timeout
|
||||
GameState.initialize_game({
|
||||
"seed": 42, "map_type": "continents",
|
||||
"map_size": "duel", "num_players": 2,
|
||||
})
|
||||
var main: Node = get_tree().root.get_node_or_null("Main")
|
||||
if main != null and main.has_method("change_scene"):
|
||||
main.change_scene("res://engine/scenes/menus/loading_screen.tscn")
|
||||
|
||||
await get_tree().create_timer(_delay).timeout
|
||||
_capture_and_quit()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue