Add synced user notes
This commit is contained in:
@@ -348,6 +348,7 @@ func _test_player_runtime_construction() -> void:
|
||||
_assert(player.clear_highlight_button.icon != null, "clear highlights should use the supplied toolbar artwork")
|
||||
_assert(player.report_button.icon != null, "report question should use the supplied toolbar artwork")
|
||||
_assert(player.labs_button.icon != null, "lab results should use the supplied toolbar artwork")
|
||||
_assert(player.notes_button != null and player.notes_button.icon != null, "practice questions should expose the notes tool")
|
||||
for icon_button in [player.clear_highlight_button, player.report_button, player.labs_button]:
|
||||
_assert(icon_button.alignment == HORIZONTAL_ALIGNMENT_CENTER and icon_button.icon_alignment == HORIZONTAL_ALIGNMENT_CENTER, "question toolbar artwork should be horizontally centered")
|
||||
_assert(icon_button.vertical_icon_alignment == VERTICAL_ALIGNMENT_CENTER, "question toolbar artwork should be vertically centered")
|
||||
@@ -362,6 +363,14 @@ func _test_player_runtime_construction() -> void:
|
||||
_assert(player.theme_button.icon in [Brand.SUN_ICON, Brand.MOON_ICON], "question theme toggle should use the shared sun or moon icon")
|
||||
_assert(player.choice_badges.size() == 5, "question player should construct an answer badge for every visible choice slot")
|
||||
_assert(player.choice_followup_panels[2].get_parent() == player.choice_rows[2], "distractor remediation should remain nested inside its answer choice")
|
||||
var prior_session_kind: String = root.get_node("BlockSessionService").session_kind
|
||||
root.get_node("BlockSessionService").session_kind = "simulation"
|
||||
player._refresh_toolbar_state()
|
||||
_assert(not player.notes_button.visible, "timed simulations should hide the notes tool")
|
||||
root.get_node("BlockSessionService").session_kind = "core"
|
||||
player._refresh_toolbar_state()
|
||||
_assert(player.notes_button.visible, "practice question runs should show the notes tool")
|
||||
root.get_node("BlockSessionService").session_kind = prior_session_kind
|
||||
player.choice_followup_panels[2].visible = true
|
||||
player.locked_wrong_choice_ids = ["C"]
|
||||
player.presented_choices = [{"id": "A", "text": "First"}, {"id": "B", "text": "Second"}, {"id": "C", "text": "Seek a court order"}]
|
||||
|
||||
Reference in New Issue
Block a user