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-computer): reformat test data for readability
Steven Enamakela46b9a5f68c8
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 6b025ea2be..5f461f06fe 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@@ -99,14 +99,26 @@ fn direct_actions_use_typed_targets_and_reject_unbounded_inputs() {#[test]fn browser_action_parser_covers_supported_direct_and_find_actions() {for (args, expected) in [- (json!({"action":"fill","selector":"#email","value":"x"}), "fill"),+ (+ json!({"action":"fill","selector":"#email","value":"x"}),+ "fill",+ ),(json!({"action":"type","text":"hello"}), "type"),(json!({"action":"get_text","selector":"#title"}), "get_text"),- (json!({"action":"is_visible","selector":"#title"}), "is_visible"),+ (+ json!({"action":"is_visible","selector":"#title"}),+ "is_visible",+ ),(json!({"action":"hover","selector":"#title"}), "hover"),(json!({"action":"press","key":"Enter"}), "press"),- (json!({"action":"scroll","direction":"left","pixels":32}), "scroll"),- (json!({"action":"wait","text":"Ready","ms":5,"timeout_ms":25}), "wait"),+ (+ json!({"action":"scroll","direction":"left","pixels":32}),+ "scroll",+ ),+ (+ json!({"action":"wait","text":"Ready","ms":5,"timeout_ms":25}),+ "wait",+ ),] {let parsed = parse_action(&args).unwrap();assert!(format!("{parsed:?}").to_lowercase().contains(expected));@@ -123,7 +135,10 @@ fn browser_action_parser_covers_supported_direct_and_find_actions() {}assert!(parse_action(&json!({"action":"scroll","direction":"up","pixels":u64::MAX})).is_ok());- assert!(parse_action(&json!({"action":"find","by":"text","value":"Save","find_action":"text"})).is_ok());+ assert!(parse_action(+ &json!({"action":"find","by":"text","value":"Save","find_action":"text"})+ )+ .is_ok());assert!(parse_action(&json!({"action":"wait","selector":"#ready"})).is_ok());}