mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-07 17:21:49 -10:00
Merge pull request #5425 from horizon-rust/fix/main-build-title-keyboard-test
Main's tests pass again: title keyboard test goes through the preparing screen
This commit is contained in:
1 file changed
+4
-1
@@ -1285,11 +1285,14 @@ fn title_screen_keyboard_navigation_and_activation() {
|
||||
assert!(matches!(f.title.mode, Mode::Select { .. }));
|
||||
assert_eq!(f.title.focused_button, None);
|
||||
|
||||
// Navigate to Create New World button (id 11) on the select screen
|
||||
// Navigate to Create New World button (id 11) on the select screen: the
|
||||
// "Preparing for world creation" screen comes first, then the create screen.
|
||||
f.title.focused_button = Some(11);
|
||||
let (action, sound) = f.title.confirm_key_size(size);
|
||||
assert_eq!(action, Action::None);
|
||||
assert!(sound);
|
||||
assert!(f.title.preparing());
|
||||
f.title.finish_preparing();
|
||||
assert!(matches!(f.title.mode, Mode::Create { .. }));
|
||||
|
||||
// Focus and toggle Game Mode cycle button (id 20) from Survival to Hardcore
|
||||
|
||||
Reference in new issue
Block a user