Launch question bank directly from navigation
This commit is contained in:
@@ -32,6 +32,10 @@ func _run() -> void:
|
||||
_assert(dynamic_icon != null, "dynamic questions should expose its mode icon")
|
||||
if dynamic_icon != null:
|
||||
_assert(dynamic_icon.texture.resource_path == "res://assets/icons/lucide/activity.svg", "dynamic questions should use a web-safe vector icon")
|
||||
selector._show_stage("question_bank")
|
||||
await process_frame
|
||||
_assert(selector.question_bank_launch_view.visible and not selector.mode_view.visible, "direct question bank navigation should show only the focused launch state")
|
||||
_assert(selector.launch_retry_button != null and selector.launch_error_label != null, "question bank launch should retain retry and error controls")
|
||||
|
||||
var main_screen = load("res://scripts/ui/main.gd").new()
|
||||
main_screen.size = host.size
|
||||
@@ -43,6 +47,9 @@ func _run() -> void:
|
||||
_assert(main_screen.theme_button.icon_alignment == HORIZONTAL_ALIGNMENT_CENTER, "the theme toggle icon should remain centered")
|
||||
_assert(main_screen.header_panel.find_child("HeaderStats", true, false) == null, "the application header should not display rating or role labels")
|
||||
_assert(not main_screen.account_chevron_button.visible, "nonessential account controls should collapse on phone-width headers")
|
||||
var question_bank_nav := main_screen.sidebar.find_child("NavQuestionBank", true, false) as Button
|
||||
_assert(question_bank_nav != null and question_bank_nav.text == "Question Bank", "the Practice navigation item should be replaced by Question Bank")
|
||||
_assert(main_screen.sidebar.find_child("NavPractice", true, false) == null, "the sidebar should not retain a Practice navigation item")
|
||||
|
||||
host.queue_free()
|
||||
await process_frame
|
||||
|
||||
Reference in New Issue
Block a user