Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

Stabilize loaded background console fixture

ldm0f0559604553a
diff --git a/moli-protocol/src/conn/tests/resource_runtime.rs b/moli-protocol/src/conn/tests/resource_runtime.rs
index 89ced9a8d..5d54957b1 100644
--- a/moli-protocol/src/conn/tests/resource_runtime.rs
+++ b/moli-protocol/src/conn/tests/resource_runtime.rs
@@ -2762,6 +2762,11 @@ async fn direct_console_routes_to_loaded_background_owner_and_advances_parked_cu
ctx.conn.inactive_browser_contexts.push(inactive);
ctx.install_navigation_fixture_for_session_owner(page_url, Some("SID-background"))
.await;
+ ctx.wait_for_scheduler_message("background console fixture load", |message| {
+ message["method"] == json!("Page.loadEventFired")
+ && message["sessionId"] == json!("SID-background")
+ })
+ .await;
ctx.sent.clear();
ctx.process_and_wait_for_response_async(json!({