-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
fix: minBrowserVersion in SyncOption should be a number #291
fix: minBrowserVersion in SyncOption should be a number #291
Conversation
It looks like unit tests need some update |
Thank you for reviews, I'll take a look at CI not working too. |
I fixed the points according to your comments, PTAL |
function convertToInt(value) { | ||
switch (typeof value) { | ||
case 'number': | ||
return Number.isNaN(value) ? null : value; |
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.
this might also return floats, but that is probably not something we care much
## [5.3.1](v5.3.0...v5.3.1) (2023-03-16) ### Bug Fixes * install-npm.js fails to run npm run build due to type error ([#292](#292)) ([1e3014b](1e3014b)) * minBrowserVersion in SyncOption should be a number ([#291](#291)) ([39d8fdd](39d8fdd)) ### Miscellaneous Chores * ChromeDriver Bump to v111.0.5563.64 ([#290](#290)) ([2c4c144](2c4c144))
Issue to fix
This PR fixes an issue where selectMatchingDrivers() ignores
minBroswerVersion
and attempts to download a lot of unnecessary ChromeDrviers.Here is a log. While it can detect the Chrome version, it doesn't filter with the minimum browser version.
Cause
selectMatchingDrivers() assumes
minBrowserVersion
is a string but it's always a number as it's given here and the type ofSemver.chromeVersion.major
is number. https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/semver/classes/semver.d.ts#L12