Move the log popup to the main window
The quiz reports point changes with an event_logged signal, and the main window adds them to the log. Alt+L is handled by the main window.
This commit is contained in:
1 parent
e94c75e84d
commit
5cdec5cc8f
8 files changed
+30
-27
No files matched your search
@@ -6,7 +6,7 @@ extends MainWindowTestSuite
|
||||
|
||||
const MAIN_WINDOW_CHILDREN: Array[String] = [
|
||||
"TopBar", "Quiz", "PopupBackdrop", "Search", "SyncWindow", "QRWindow",
|
||||
"ShortcutsWindow", "StatisticsPopupPanel", "AboutWindow",
|
||||
"ShortcutsWindow", "StatisticsPopupPanel", "AboutWindow", "Log",
|
||||
]
|
||||
|
||||
const TOP_BAR_CHILDREN: Array[String] = [
|
||||
@@ -130,7 +130,7 @@ func test_points_from_the_player_list_reach_the_song_and_log() -> void:
|
||||
(_player_row(crono).get_node("HBoxContainer/AddPoint") as BaseButton).pressed.emit()
|
||||
|
||||
assert_array(Playlist.song_object_array[0].players_given_point).contains_exactly([crono.id])
|
||||
assert_int((_quiz.get_node("%Log").get_node("%LogVBoxContainer") as Node).get_child_count()) \
|
||||
assert_int((_window.get_node("%Log").get_node("%LogVBoxContainer") as Node).get_child_count()) \
|
||||
.is_equal(1)
|
||||
|
||||
|
||||
@@ -242,7 +242,7 @@ func test_alt_k_opens_shortcuts_and_alt_l_opens_log() -> void:
|
||||
assert_bool((_window.get_node("ShortcutsWindow") as Control).visible).is_true()
|
||||
|
||||
await _press_keys([KEY_ALT, KEY_L])
|
||||
assert_bool((_quiz.get_node("Log") as Control).visible).is_true()
|
||||
assert_bool((_window.get_node("Log") as Control).visible).is_true()
|
||||
|
||||
|
||||
func test_alt_down_lowers_the_volume() -> void:
|
||||
|
||||
Reference in new issue
Block a user