Open CCS Cases 2 in doctor scene
This commit is contained in:
@@ -28,12 +28,9 @@ func _run() -> void:
|
||||
await process_frame
|
||||
screen.on_show()
|
||||
await process_frame
|
||||
_assert(screen.current_view == "slot_machine", "CCS Cases 2 should open on the slot machine")
|
||||
_assert(screen.active_scene != null and screen.active_scene.has_signal("continue_requested"), "slot machine should expose an embedded continue signal")
|
||||
_assert(screen.current_view == "doctor_office", "CCS Cases 2 should open directly in the doctor office")
|
||||
_assert(screen.active_scene != null, "CCS Cases 2 should instantiate the doctor-office scene")
|
||||
_assert(is_equal_approx(screen.stage_root.scale.x, screen.stage_root.scale.y), "the graphical stage should preserve its aspect ratio")
|
||||
screen.active_scene.continue_requested.emit()
|
||||
await process_frame
|
||||
_assert(screen.current_view == "doctor_office", "Continue should open the doctor office without replacing the app scene")
|
||||
screen.on_hide()
|
||||
await process_frame
|
||||
_assert(screen.active_scene == null and screen.current_view.is_empty(), "hiding CCS Cases 2 should release the prototype scene")
|
||||
|
||||
Reference in New Issue
Block a user