Add sync status route

This commit is contained in:
2026-05-08 00:20:16 -04:00
parent 479737a8b2
commit 5196aff6a3
4 changed files with 10 additions and 7 deletions
+3 -3
View File
@@ -97,7 +97,7 @@ fn open_settings_command_opens_settings_page() -> Result<(), Box<dyn Error>> {
}
#[test]
fn open_sync_status_command_opens_sync_settings_page() -> Result<(), Box<dyn Error>> {
fn open_sync_status_command_opens_sync_status_page() -> Result<(), Box<dyn Error>> {
let mut core = BrowserCore::new(InitialBrowserConfig::ely_defaults()?)?;
core.set_command_query(">open-sync-status");
@@ -105,8 +105,8 @@ fn open_sync_status_command_opens_sync_settings_page() -> Result<(), Box<dyn Err
let active_tab = core.active_tab()?;
assert_eq!(intent, Some(CommandIntent::Command("open-sync-status".to_string())));
assert_eq!(active_tab.title(), "Sync Settings");
assert_eq!(active_tab.url().as_str(), "ely://settings/sync");
assert_eq!(active_tab.title(), "Sync Status");
assert_eq!(active_tab.url().as_str(), "ely://sync/status");
assert_eq!(core.snapshot()?.command_query, "");
Ok(())
}