test(agents): use platform Tauri invoke URL

Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
This commit is contained in:
morgmart
2026-09-06 23:34:15 -07:00
parent ea15b45577
commit 59dfd53f28

View File

@@ -272,7 +272,13 @@ fn readiness_command_is_registered_and_never_persists_its_draft() {
cmd: "evaluate_agent_readiness_draft".into(),
callback: tauri::ipc::CallbackFn(0),
error: tauri::ipc::CallbackFn(1),
url: "tauri://localhost".parse().expect("invoke url"),
url: if cfg!(any(windows, target_os = "android")) {
"http://tauri.localhost"
} else {
"tauri://localhost"
}
.parse()
.expect("invoke url"),
body: tauri::ipc::InvokeBody::Json(serde_json::json!({
"draft": {
"kind": "existing",