Skip to content

Commit

Permalink
[rust] Skip test to force download Edge in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia committed May 20, 2024
1 parent a2a0b59 commit 0819446
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions rust/tests/browser_download_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ mod common;
#[case("firefox")]
#[case("edge")]
fn browser_latest_download_test(#[case] browser: String) {
let mut cmd = Command::new(env!("CARGO_BIN_EXE_selenium-manager"));
cmd.args([
"--browser",
&browser,
"--force-browser-download",
"--output",
"json",
"--debug",
])
.assert()
.success()
.code(0);
if !browser.eq("edge") || !OS.eq("windows") {
let mut cmd = Command::new(env!("CARGO_BIN_EXE_selenium-manager"));
cmd.args([
"--browser",
&browser,
"--force-browser-download",
"--output",
"json",
"--debug",
])
.assert()
.success()
.code(0);

assert_driver(&mut cmd);
if !OS.eq("windows") {
assert_driver(&mut cmd);
assert_browser(&mut cmd);
}
}
Expand Down

0 comments on commit 0819446

Please sign in to comment.