32 lines
1.0 KiB
Rust
32 lines
1.0 KiB
Rust
use super::*;
|
|
use crate::test_util::settings::initialize_settings_for_tests;
|
|
use galaxyui::{App, SingletonEntity};
|
|
use settings::Setting;
|
|
|
|
#[test]
|
|
fn use_latest_user_prompt_as_conversation_title_in_tab_names_defaults_to_false() {
|
|
App::test((), |mut app| async move {
|
|
initialize_settings_for_tests(&mut app);
|
|
|
|
TabSettings::handle(&app).read(&app, |settings, _ctx| {
|
|
assert!(!*settings.use_latest_user_prompt_as_conversation_title_in_tab_names);
|
|
});
|
|
});
|
|
}
|
|
|
|
#[test]
|
|
fn use_latest_user_prompt_as_conversation_title_in_tab_names_uses_vertical_tabs_path() {
|
|
assert_eq!(
|
|
UseLatestUserPromptAsConversationTitleInTabNames::toml_path(),
|
|
Some("appearance.vertical_tabs.use_latest_prompt_as_title")
|
|
);
|
|
assert_eq!(
|
|
UseLatestUserPromptAsConversationTitleInTabNames::hierarchy(),
|
|
Some("appearance.vertical_tabs")
|
|
);
|
|
assert_eq!(
|
|
UseLatestUserPromptAsConversationTitleInTabNames::toml_key(),
|
|
"use_latest_prompt_as_title"
|
|
);
|
|
}
|