feat: add generated scene skill platform hardening
This commit is contained in:
@@ -29,11 +29,7 @@ fn bridge_contract_represents_browser_action_requests_without_ws_business_frames
|
||||
json!({ "url": "https://www.baidu.com" }),
|
||||
"www.baidu.com",
|
||||
),
|
||||
BridgeBrowserActionRequest::new(
|
||||
"click",
|
||||
json!({ "selector": "#submit" }),
|
||||
"www.zhihu.com",
|
||||
),
|
||||
BridgeBrowserActionRequest::new("click", json!({ "selector": "#submit" }), "www.zhihu.com"),
|
||||
BridgeBrowserActionRequest::new(
|
||||
"getText",
|
||||
json!({ "selector": "#content" }),
|
||||
@@ -76,5 +72,8 @@ fn bridge_contract_represents_browser_action_requests_without_ws_business_frames
|
||||
assert!(object.contains_key("action"));
|
||||
assert!(object.contains_key("params"));
|
||||
assert!(object.contains_key("expected_domain"));
|
||||
assert_eq!(first["expected_domain"], Value::String("www.baidu.com".to_string()));
|
||||
assert_eq!(
|
||||
first["expected_domain"],
|
||||
Value::String("www.baidu.com".to_string())
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user