-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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: do not hard-code chrome for interactive e2e #15837
Conversation
Thanks for taking the time to open a PR!
|
Test summaryRun details
View run in Cypress Dashboard ➡️ Flakiness
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
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.
Looks good other than the nit about Set
const browserMap = installedBrowsers.reduce((acc, curr) => { | ||
acc[curr.name] = true | ||
|
||
return serverCt.start(projectRoot, options) | ||
return acc | ||
}, {}) |
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 should be a Set
instead
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.
Is there an objective reason that is better?
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.
It's cleaner and more clear
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.
Oops I merged, I'll make this change when I'm in this area again (prob soon). Thanks!
User facing changelog
Do not assume chrome exists on every machine when launching the component testing runner in interactive mode.
Additional details
Some machines will not have chrome installed. In that case, we fall back to chromium -> edge -> electron etc.
How has the user experience changed?
Do not throw an error when running
yarn cypress open-ct
if Chrome is not installed.PR Tasks