From Dev.to
How to simulate keyboard and mouse input in GUT and GdUnit4 (tested on Godot 4.7.2)
In GUT, queue input on a GutInputSender aimed at Input and await its idle signal before you assert; in GdUnit4, call the scene runner's simulate_key_*, simulate_action_* and simulate_mouse_button_* me...
