feat(settings): control shortcut guides
This commit is contained in:
1 parent
ea63cf7b40
commit
8b46a5168f
14 files changed
+299
-25
No files matched your search
@@ -669,7 +669,7 @@ fn launcher_settings_expand_to_storage_and_confirm_cache_cleanup() {
|
||||
assert!(ui.screen().contains("Instances"));
|
||||
assert!(ui.screen().contains("Metadata"));
|
||||
|
||||
for _ in 18..23 {
|
||||
for _ in 18..24 {
|
||||
ui.key(KeyCode::Char('j'));
|
||||
}
|
||||
ui.key(KeyCode::Enter);
|
||||
@@ -984,7 +984,7 @@ fn settings_use_java_memory_and_resolution_controls() {
|
||||
ui.key(KeyCode::Esc);
|
||||
|
||||
ui.key(KeyCode::Char('G'));
|
||||
for _ in 0..5 {
|
||||
for _ in 0..6 {
|
||||
ui.key(KeyCode::Char('j'));
|
||||
}
|
||||
ui.key(KeyCode::Enter);
|
||||
|
||||
@@ -8,7 +8,11 @@ use super::{
|
||||
|
||||
#[test]
|
||||
fn fitted_keybinds_use_terminal_width_and_omit_overflow() {
|
||||
let line = keybind_line_fitted(&[("⏎", " select"), ("a", " add")], 10);
|
||||
let line = keybind_line_fitted(
|
||||
crate::config::settings::ShortcutHintScope::Accounts,
|
||||
&[("⏎", " select"), ("a", " add")],
|
||||
10,
|
||||
);
|
||||
|
||||
assert_eq!(line.width(), 10);
|
||||
assert_eq!(line.to_string(), "[⏎] select");
|
||||
|
||||
Reference in new issue
Block a user