()
| 24 | |
| 25 | #[test] |
| 26 | fn json_output_test() { |
| 27 | let mut cmd = get_selenium_manager(); |
| 28 | cmd.args([ |
| 29 | "--browser", |
| 30 | if is_linux_arm64() { |
| 31 | "firefox" |
| 32 | } else { |
| 33 | "chrome" |
| 34 | }, |
| 35 | "--output", |
| 36 | "json", |
| 37 | ]) |
| 38 | .assert() |
| 39 | .success() |
| 40 | .code(0); |
| 41 | |
| 42 | let stdout = get_stdout(&mut cmd); |
| 43 | |
| 44 | let json: JsonOutput = serde_json::from_str(&stdout).unwrap(); |
| 45 | assert!(!json.logs.is_empty()); |
| 46 | |
| 47 | let output_code = json.result.code; |
| 48 | assert_eq!(output_code, 0); |
| 49 | |
| 50 | let driver = Path::new(&json.result.driver_path); |
| 51 | assert!(driver.exists()); |
| 52 | } |
| 53 | |
| 54 | #[test] |
| 55 | fn shell_output_test() { |
nothing calls this directly
no test coverage detected