-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add possibility to select a version for geckodriver to install #897
base: master
Are you sure you want to change the base?
feat: add possibility to select a version for geckodriver to install #897
Conversation
src/test/webdriver/geckodriver.rs
Outdated
let geckodriver_version = if target::WINDOWS { | ||
log::info!( | ||
"[geckodriver] Windows detected, holding geckodriver version to {}", | ||
DEFAULT_WINDOWS_GECKODRIVER_VERSION | ||
); | ||
DEFAULT_WINDOWS_GECKODRIVER_VERSION.to_owned() | ||
} else if specified_geckodriver_version.is_ok() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would probably switch conditions if target::WINDOWS
and if specified_geckodriver_version.is_ok()
otherwise you wouldn't be able to specify the version on Windows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure because it seems the version for windows had to be 0.24.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done :)
… users can also select a version
Hello guys, what should we do with this PR ? |
Hello guys !!!
I checked! 📦✅
rustfmt
installedcargo fmt
on the code base before submitting-> It did touched some other lines in the code that I did'nt touch :P
-> Running tests in headless mode for Firefox is failing with 500 code response but ok in web browser wasm-bindgen#2261 (comment)
Since the 27th of July there is a bug with headless mode for firefox on the latest geckodriver.
So, it could be nice to give us the opportunity to choose which version we want to install.
What we need to do :
geckodriver
This PR is draft, because I am not pro and maybe we can find a good solution together 😄
My first reflex is that we could use environment variable to do that, but maybe we can use
feature
or something else.Thank you for your inputs.
By the way, the test I made is failing, and even with debugging in my IDE, I do not know where it is failing. Can somebody give me a hand on this ?
✨ Thank you for your inputs ✨
Issue : rustwasm/wasm-bindgen#2261 (comment)