Add site permissions settings page

This commit is contained in:
2026-05-08 03:51:01 -04:00
parent ada0a82da8
commit 4988fd7c70
5 changed files with 275 additions and 0 deletions
@@ -149,3 +149,24 @@ fn settings_scoped_search_opens_downloads_page() -> Result<(), Box<dyn Error>> {
assert_eq!(core.snapshot()?.command_query, "");
Ok(())
}
#[test]
fn settings_scoped_search_opens_site_permissions_page() -> Result<(), Box<dyn Error>> {
let mut core = BrowserCore::new(InitialBrowserConfig::ely_defaults()?)?;
core.set_command_query("@settings site permissions");
let intent = core.submit_command()?;
let active_tab = core.active_tab()?;
assert_eq!(
intent,
Some(CommandIntent::ScopedSearch {
scope: CommandScope::Settings,
query: "site permissions".to_string(),
})
);
assert_eq!(active_tab.title(), "Site Permissions Settings");
assert_eq!(active_tab.url().as_str(), "ely://settings/site-permissions");
assert_eq!(core.snapshot()?.command_query, "");
Ok(())
}