fix(tests): PR #134 review round 3 — seed start-state + PID log path
- test_character_creation_sprint28: before_each now seeds _selected_bookmark_id and _selected_location_id so the new disabled- guard in _on_start() (round 2) doesn't silently block 5 existing tests that call _on_start()/KEY_ENTER without setting up a valid bookmark selection. Restores the 2 tests Hoshe flagged as R2-H1 plus 3 siblings that would have degraded the same way under the guard. - tests/run-godot: LOG_FILE now includes $$ (PID) so concurrent runs across worktrees don't clobber each other's logs. Path is echoed back via the stdout JSON "log" field and the stderr hint line, so callers never need to predict it (R2-H2).
This commit is contained in:
@@ -26,6 +26,13 @@ func before_each() -> void:
|
||||
return
|
||||
_scene = packed.instantiate() as CharacterCreation
|
||||
add_child(_scene)
|
||||
# Seed a valid bookmark/location so _on_start passes the disabled guard
|
||||
# added in PR #134 (R2-Hoshe-1). Tests that verify the disabled state
|
||||
# should explicitly clear these and call _update_start_btn_state().
|
||||
_scene._selected_bookmark_id = "test-bookmark"
|
||||
_scene._selected_location_id = "test-location"
|
||||
if _scene.has_method("_update_start_btn_state"):
|
||||
_scene._update_start_btn_state()
|
||||
|
||||
|
||||
func after_each() -> void:
|
||||
|
||||
Reference in New Issue
Block a user