Add sync status route
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user