Add appearance settings surface

This commit is contained in:
2026-05-08 20:48:50 -04:00
parent 3df998876b
commit 277ae8c689
5 changed files with 268 additions and 0 deletions
@@ -45,6 +45,27 @@ fn settings_scoped_search_opens_general_page() -> Result<(), Box<dyn Error>> {
Ok(())
}
#[test]
fn settings_scoped_search_opens_appearance_page() -> Result<(), Box<dyn Error>> {
let mut core = BrowserCore::new(InitialBrowserConfig::ely_defaults()?)?;
core.set_command_query("@settings appearance");
let intent = core.submit_command()?;
let active_tab = core.active_tab()?;
assert_eq!(
intent,
Some(CommandIntent::ScopedSearch {
scope: CommandScope::Settings,
query: "appearance".to_string(),
})
);
assert_eq!(active_tab.title(), "Appearance Settings");
assert_eq!(active_tab.url().as_str(), "ely://settings/appearance");
assert_eq!(core.snapshot()?.command_query, "");
Ok(())
}
#[test]
fn settings_scoped_search_opens_shortcuts_page() -> Result<(), Box<dyn Error>> {
let mut core = BrowserCore::new(InitialBrowserConfig::ely_defaults()?)?;