Add auth callback internal page

This commit is contained in:
2026-05-09 03:41:13 -04:00
parent 5c253062ca
commit 130cf8ec83
4 changed files with 249 additions and 0 deletions
+13
View File
@@ -72,6 +72,19 @@ fn opened_tabs_record_active_tab_as_parent() -> Result<(), Box<dyn Error>> {
Ok(())
}
#[test]
fn auth_callback_tabs_receive_internal_title() -> Result<(), Box<dyn Error>> {
let mut core = BrowserCore::new(InitialBrowserConfig::ely_defaults()?)?;
let tab_id = core.open_tab(UrlText::parse("ely://auth/callback?code=abc")?);
let snapshot = core.snapshot()?;
let tab =
snapshot.tabs.iter().find(|tab| tab.id() == &tab_id).ok_or(CoreError::MissingActiveTab)?;
assert_eq!(tab.title(), "Auth Callback");
Ok(())
}
#[test]
fn replacement_tabs_have_no_parent_tab() -> Result<(), Box<dyn Error>> {
let mut core = BrowserCore::new(InitialBrowserConfig::ely_defaults()?)?;