Skip to content

feat(cli): better error message for ChromeDriver version mismatch - #680

Merged
straker merged 4 commits into
dequelabs:developfrom
not-my-profile:better-error-for-chromedriver-version-mismatch
Aug 22, 2023
Merged

feat(cli): better error message for ChromeDriver version mismatch#680
straker merged 4 commits into
dequelabs:developfrom
not-my-profile:better-error-for-chromedriver-version-mismatch

Conversation

@not-my-profile

Copy link
Copy Markdown
Contributor

Fixes #679.

@not-my-profile
not-my-profile requested a review from a team as a code owner March 6, 2023 18:53
@CLAassistant

CLAassistant commented Mar 6, 2023

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@straker straker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pr! This type of message will help a ton.

Comment thread packages/cli/src/bin/index.ts Outdated
@michael-siek

Copy link
Copy Markdown
Member

Hey @not-my-profile just reaching out to see if you've seen the request changes on the PR.

@not-my-profile
not-my-profile force-pushed the better-error-for-chromedriver-version-mismatch branch from 63c7d4e to d54a370 Compare June 30, 2023 19:13
@not-my-profile
not-my-profile force-pushed the better-error-for-chromedriver-version-mismatch branch from d54a370 to aefecb3 Compare July 2, 2023 07:58
$ npm install -g chromedriver@<version>
$ axe --chromedriver-path $(npm root -g)/chromedriver/bin/chromedriver <url...>

(where <version> is the first number of the "current browser version" reported above.)`);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"the first number" is a bit ambiguous. We should be very specific about what we want as browser version 114.0.5735.198 the first number would be 1 which would not be the version of chromedriver we want.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're confusing "digit" with "number". I changed your suggestion of "major version" to "first number of the version" since I think there's a good chance that the user isn't familiar with SemVer.

@Zidious

Zidious commented Aug 7, 2023

Copy link
Copy Markdown
Contributor

Hey @not-my-profile !

Just missing a test and I think this is good to go

@straker
straker dismissed their stale review August 22, 2023 22:27

Resolved

@straker

straker commented Aug 22, 2023

Copy link
Copy Markdown
Contributor

Thanks for the contribution.

Reviewed for security

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants