-
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
feat: ability to specify the default browser in cypress config #30517
Conversation
|
* Update coreDataShape.ts * Update ProjectLifecycleManager.ts
* Update modeOptions.ts * Update index.ts * Update ProjectLifecycleManager.ts
@jennifer-shehane can you review this? I have simplified the implementation as much as I can. It is still using After you review it, I'll make a PR for the cypress-documentation repo |
@jennifer-shehane can you allow the contributor-pr to run? weird why it needs approval when you did the commit |
I just fixed the system-test for defaultBrowser, ran the test successfully locally |
Hi @alexsch01 👋, thanks for this contribution! I approved the |
* make test run with all versions of system-tests * Update index.spec.ts.js * Update index.spec.ts.js * Update utils.spec.ts * Update results_spec.ts.js
packages/data-context/test/unit/data/ProjectLifecycleManager.spec.ts
Outdated
Show resolved
Hide resolved
I'll take a look. |
FYI: I updated
|
Thanks for re-running, all tests passed! |
@alexsch01, thanks again for the contribution! 🎉 |
I tested the beta build for this PR and it works great! |
Additional details
I would like every cypress test I write to go against Chrome instead of Electron
cypress config file option "defaultBrowser" will be used for this so it will have to be documented -
cypress-io/cypress-documentation#5991
putting in "defaultBrowser": "chrome" in the cypress config file will work the same way as "--browser chrome" in the CLI
configBrowser gets the "defaultBrowser" attribute from the object created from the cypress config file
The browser option in the cypress configuration file is only used if configBrowser exists and if '--browser' / '-b' is not part of the CLI args list.
Steps to test
defaultBrowser: "chrome"
in their cypress config filedefaultBrowser: "chrome"
from their cypress config fileHow has the user experience changed?
User can pass in
defaultBrowser: "BROWSER"
to their cypress config file and they won't need to pass in--browser BROWSER
to launch BROWSER--browser electron
to open the Electron browser if cypress config file has the optiondefaultBrowser
setPR Tasks
cypress-documentation
?type definitions
?