-
Notifications
You must be signed in to change notification settings - Fork 42
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
Provide a better error message when Chromium isn't found #1137
Conversation
16da1d2
to
d3b43c3
Compare
d3b43c3
to
8aa03db
Compare
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.
Nice bit of refactoring and the error message definitely looks better when chrome or chromium aren't installed. Left a few things to consider and for clarification.
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 like the idea you came up with to check the path in ExecutablePath
👍
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.
Nice! Just a small comment on the error message, but LGTM.
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.
LGTM.
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.
LGTM. Left one minor thing to consider.
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.
LGTM
When the chromium isn't found, we say: "no command", which is confusing to most users. This new error message tells the user that they have to install a Chromium on their system to run browser tests.
This better makes to be here. We were passing the whole opts value just to deliver a path to allocate. Launch is about finding a path to the executable and launching it.
Co-authored-by: ka3de <danijs12@hotmail.com>
8227bb0
to
d04dbec
Compare
What?
BrowserContext.ExecutablePath
toExecutablePath
.Why?
ExecutablePath
testable to prevent future regressions.Checklist
Related PR(s)/Issue(s)
Updates #1136