Fix CCS popup lifecycle and contrast

This commit is contained in:
hz
2026-08-04 07:10:36 -05:00
parent 690c4a8903
commit c140b9a96c
2 changed files with 75 additions and 0 deletions
+9
View File
@@ -1,5 +1,7 @@
extends SceneTree
const Brand := preload("res://scripts/ui/medmind_style.gd")
var failures := 0
var ccs_service
@@ -57,6 +59,13 @@ func _run() -> void:
player.size = Vector2(800, 900)
player._update_responsive_layout()
_assert(player.action_grid.columns == 2, "narrow CCS screens should use a two-column action workspace")
_assert(player.intro_dialog.theme != null, "CCS dialogs should receive an explicit readable theme")
_assert(player.intro_dialog.theme.get_color("font_color", "Label") == Brand.text_color(player.theme_service.is_dark_mode()), "CCS dialog text should contrast with the active theme")
player.time_dialog.popup_centered(Vector2i(600, 350))
await process_frame
_assert(player.time_dialog.visible, "CCS dialog lifecycle test should begin with an open popup")
player.on_hide()
_assert(not player.time_dialog.visible, "hiding the CCS screen should dismiss popup windows")
ccs_service.attempt.state = "final_orders"
player._render()