Skip to content

test: set defaultBrowser to chrome#1713

Merged
jennifer-shehane merged 1 commit intocypress-io:masterfrom
MikeMcC399:default-browser-chrome
Mar 30, 2026
Merged

test: set defaultBrowser to chrome#1713
jennifer-shehane merged 1 commit intocypress-io:masterfrom
MikeMcC399:default-browser-chrome

Conversation

@MikeMcC399
Copy link
Copy Markdown
Collaborator

@MikeMcC399 MikeMcC399 commented Mar 30, 2026

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 example cypress.config.js files so runs don’t depend on Electron being the implicit default.

Updates the example-docker GitHub Actions workflow matrix to stop running tests in electron, leaving chrome, edge, and firefox.

Written by Cursor Bugbot for commit 5ea7191. This will update automatically on new commits. Configure here.

Remove Electron tests
@cypress-app-bot
Copy link
Copy Markdown

@MikeMcC399 MikeMcC399 added the type: enhancement New feature or request label Mar 30, 2026
@MikeMcC399 MikeMcC399 self-assigned this Mar 30, 2026
@MikeMcC399 MikeMcC399 marked this pull request as ready for review March 30, 2026 16:04
@jennifer-shehane jennifer-shehane merged commit 68be0d4 into cypress-io:master Mar 30, 2026
88 checks passed
@mschile
Copy link
Copy Markdown

mschile commented Mar 30, 2026

Cypress 16 plans to remove Electron as default browser with no replacement

Just an fyi, I wouldn't say this is true. In fact I would say there is a high probability we will default the defaultBrowser setting in run mode to be either chrome or chrome-for-testing. The Electron removal PR is just the first step to remove Electron as a supported and default browser. That being said, adding the default here is fine.

@MikeMcC399
Copy link
Copy Markdown
Collaborator Author

@mschile

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.

@MikeMcC399 MikeMcC399 deleted the default-browser-chrome branch March 30, 2026 16:22
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 7.1.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

released type: enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants