update unit tests

This commit is contained in:
Chris Tate
2026-01-11 09:48:44 -06:00
parent fe8f16c7a5
commit 82079d6d20
4 changed files with 392 additions and 34 deletions
+10
View File
@@ -848,6 +848,16 @@ fn main() {
exit(1);
}
// If --headed flag is set, send launch command first to switch to headed mode
if flags.headed {
let launch_cmd = json!({ "id": gen_id(), "action": "launch", "headless": false });
if let Err(e) = send_command(launch_cmd, &flags.session) {
if !flags.json {
eprintln!("\x1b[33m⚠\x1b[0m Could not switch to headed mode: {}", e);
}
}
}
match send_command(cmd, &flags.session) {
Ok(resp) => {
let success = resp.success;