(#[case] os: String, #[case] browser: String, #[case] browser_path: String)
| 197 | r"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" |
| 198 | )] |
| 199 | fn browser_path_test(#[case] os: String, #[case] browser: String, #[case] browser_path: String) { |
| 200 | if OS.eq(&os) && Path::new(&browser_path).exists() { |
| 201 | let mut cmd = get_selenium_manager(); |
| 202 | cmd.args(["--browser", &browser, "--browser-path", &browser_path]) |
| 203 | .assert() |
| 204 | .success() |
| 205 | .code(0); |
| 206 | |
| 207 | let stdout = get_stdout(&mut cmd); |
| 208 | |
| 209 | assert!(!stdout.contains("WARN")); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | #[test] |
| 214 | fn invalid_browser_path_test() { |
nothing calls this directly
no test coverage detected