The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(browser): borrow press action before approval target call
Steven Enamakeld30f9ea16384
diff --git a/crates/openhuman-core/src/tools/impl/browser/browser_computer_tests.rs b/crates/openhuman-core/src/tools/impl/browser/browser_computer_tests.rsindex 41f5393274..79e1f45555 100644--- a/crates/openhuman-core/src/tools/impl/browser/browser_computer_tests.rs+++ b/crates/openhuman-core/src/tools/impl/browser/browser_computer_tests.rs@@ -86,10 +86,11 @@ fn approval_describes_selector_and_locator_targets() {assert!(locator.contains("Role locator") && locator.contains("Email"));assert!(!locator.contains("[email protected]"));- let (reference, press) = approval_target(&Action::Press {+ let press_action = Action::Press {key: "Enter".into(),target: Some(Target::reference("e7")),- });+ };+ let (reference, press) = approval_target(&press_action);assert_eq!(reference, Some("e7"));assert_eq!(press, " @e7");let (_, untargeted) = approval_target(&Action::Press {