test(tui): cover username directories setting and regenerate openrpc doc
This commit is contained in:
@@ -509,6 +509,7 @@ mod tests {
|
||||
s.rows(),
|
||||
vec![
|
||||
SettingsRow::ChangePassword,
|
||||
SettingsRow::UseUsernameDirs,
|
||||
SettingsRow::DownloadDir,
|
||||
SettingsRow::Share(0),
|
||||
]
|
||||
@@ -516,6 +517,8 @@ mod tests {
|
||||
// The row below "change password" is the download folder, not a
|
||||
// logout the window cannot perform.
|
||||
s.handle_key(key(KeyCode::Down));
|
||||
assert_eq!(s.selected_row(), SettingsRow::UseUsernameDirs);
|
||||
s.handle_key(key(KeyCode::Down));
|
||||
assert_eq!(s.selected_row(), SettingsRow::DownloadDir);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -192,6 +192,7 @@ fn an_attached_window_offers_no_logout() {
|
||||
let mut tui = attach(session);
|
||||
press(&mut tui, KeyCode::Char('o'));
|
||||
press(&mut tui, KeyCode::Down);
|
||||
press(&mut tui, KeyCode::Down);
|
||||
press(&mut tui, KeyCode::Enter);
|
||||
|
||||
let settings = tui.state.settings.as_ref().expect("still open");
|
||||
|
||||
Reference in New Issue
Block a user