Use win32 chromedriver binaries for win64 systems, update chromedriver version to 2.45 and fix error message

master
Jonas Scheffner 6 years ago
parent dc97112908
commit cd8ee977d5
  1. 6
      src/test/webdriver.rs
  2. 3
      tests/all/webdriver.rs

@ -31,14 +31,14 @@ pub fn install_chromedriver(
"linux64"
} else if target::MACOS && target::x86_64 {
"mac64"
} else if target::WINDOWS && target::x86 {
} else if target::WINDOWS {
"win32"
} else {
bail!("geckodriver binaries are unavailable for this target")
bail!("chromedriver binaries are unavailable for this target")
};
let url = format!(
"https://chromedriver.storage.googleapis.com/2.41/chromedriver_{}.zip",
"https://chromedriver.storage.googleapis.com/2.45/chromedriver_{}.zip",
target
);
match cache.download(

@ -6,7 +6,8 @@ use wasm_pack::test::webdriver;
#[cfg(any(
all(target_os = "linux", target_arch = "x86_64"),
all(target_os = "macos", target_arch = "x86_64"),
all(target_os = "windows", target_arch = "x86")
all(target_os = "windows", target_arch = "x86"),
all(target_os = "windows", target_arch = "x86_64")
))]
fn can_install_chromedriver() {
let fixture = fixture::js_hello_world();

Loading…
Cancel
Save