(#[case] os: String, #[case] browser: String, #[case] browser_path: String)
| 219 | r"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" |
| 220 | )] |
| 221 | fn browser_path_test(#[case] os: String, #[case] browser: String, #[case] browser_path: String) { |
| 222 | if OS.eq(&os) && Path::new(&browser_path).exists() { |
| 223 | let mut cmd = get_selenium_manager(); |
| 224 | cmd.args(["--browser", &browser, "--browser-path", &browser_path]) |
| 225 | .assert() |
| 226 | .success() |
| 227 | .code(0); |
| 228 | |
| 229 | let stdout = get_stdout(&mut cmd); |
| 230 | |
| 231 | assert!(!stdout.contains("WARN")); |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | #[test] |
| 236 | fn invalid_browser_path_test() { |
nothing calls this directly
no test coverage detected