Restrict progression features to UAT
This commit is contained in:
@@ -206,7 +206,7 @@ func _test_resolved_followup_stays_expanded_and_toggles() -> void:
|
||||
_assert(content.find_child("FollowupOption_A", true, false) != null, "the resolved follow-up should retain its selected option")
|
||||
_assert(content.find_child("FollowupOption_B", true, false) != null, "the resolved follow-up should retain its correct option")
|
||||
var verdict := content.find_child("FollowupVerdict", true, false) as Label
|
||||
_assert(verdict != null and verdict.text == "Incorrect", "the resolved follow-up should show whether the answer was correct")
|
||||
_assert(verdict != null and verdict.text.is_empty(), "an incorrect follow-up should rely on its red answer treatment instead of redundant verdict text")
|
||||
if toggle != null:
|
||||
toggle.pressed.emit()
|
||||
_assert(bool(player.followup_states["B"].get("collapsed", false)), "the minimize toggle should collapse the follow-up")
|
||||
@@ -297,10 +297,8 @@ func _test_review_followup_is_optional_and_single_attempt() -> void:
|
||||
player.review_followups_section.add_child(player.review_followups_content)
|
||||
player._render_review_followups()
|
||||
_assert(not player.next_button.disabled, "optional review follow-ups must not lock Next")
|
||||
player._answer_review_followup(0, "B")
|
||||
_assert(bool(player.review_followup_states[0].get("answered", false)), "a review follow-up should record its first response")
|
||||
player._answer_review_followup(0, "A")
|
||||
_assert(player.review_followup_states[0].get("selected_choice_id", "") == "B", "review follow-ups should accept only one attempt")
|
||||
_assert(not player.review_followups_section.visible, "generic post-answer review follow-ups should remain retired")
|
||||
_assert(player.review_followup_states.is_empty(), "retired generic follow-ups should not create answer state")
|
||||
player.review_followups_section.free()
|
||||
player.next_button.free()
|
||||
player.free()
|
||||
|
||||
Reference in New Issue
Block a user