test: set defaultBrowser to chrome#1713
Merged
jennifer-shehane merged 1 commit intocypress-io:masterfrom Mar 30, 2026
Merged
Conversation
Remove Electron tests
|
jennifer-shehane
approved these changes
Mar 30, 2026
Just an fyi, I wouldn't say this is true. In fact I would say there is a high probability we will default the |
Collaborator
Author
|
I've changed the text to make it more open to your exact migration plans, so thanks for your comments! Setting the default here does make it independent of those plans though. |
|
🎉 This PR is included in version 7.1.9 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Situation
Cypress 16 plans to remove Electron as default browser with open plans for exact replacement options (see cypress-io/cypress#33524). Workflows that do not define a browser may fail.
Change
Chrome is the most used browser and is available in GitHub-hosted runners for each operating system.
For those examples that are not browser-specific add the Browsers configuration setting
defaultBrowsers: chrome.Remove tests that explicitly specify
electron.Follow-on actions
Prior to release of Cypress 16, documentation that refers to Electron being the default browser for Cypress will need updating.
Note
Low Risk
Low risk since this only adjusts Cypress example configs and CI test matrix; main impact is reduced browser coverage (Electron no longer exercised) and any implicit reliance on Electron defaults.
Overview
Sets
defaultBrowser: 'chrome'across Cypress examplecypress.config.jsfiles so runs don’t depend on Electron being the implicit default.Updates the
example-dockerGitHub Actions workflow matrix to stop running tests inelectron, leavingchrome,edge, andfirefox.Written by Cursor Bugbot for commit 5ea7191. This will update automatically on new commits. Configure here.