(#[case] os: String, #[case] browser: String, #[case] browser_path: String)
| 136 | r"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" |
| 137 | )] |
| 138 | fn browser_path_test(#[case] os: String, #[case] browser: String, #[case] browser_path: String) { |
| 139 | if OS.eq(&os) && Path::new(&browser_path).exists() { |
| 140 | let mut cmd = get_selenium_manager(); |
| 141 | cmd.args(["--browser", &browser, "--browser-path", &browser_path]) |
| 142 | .assert() |
| 143 | .success() |
| 144 | .code(0); |
| 145 | |
| 146 | let stdout = get_stdout(&mut cmd); |
| 147 | |
| 148 | assert!(!stdout.contains("WARN")); |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | #[test] |
| 153 | fn invalid_browser_path_test() { |
nothing calls this directly
no test coverage detected