Skip to content

test: set defaultBrowser to chrome - #1887

Merged
AtofStryker merged 5 commits into
cypress-io:masterfrom
MikeMcC399:default-browser-chrome
Sep 9, 2026
Merged

test: set defaultBrowser to chrome#1887
AtofStryker merged 5 commits into
cypress-io:masterfrom
MikeMcC399:default-browser-chrome

Conversation

@MikeMcC399

@MikeMcC399 MikeMcC399 commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Situation

Electron is used as the default browser throughout this repo.

With the release of Cypress 16.0.0 Electron has been deprecated:

Deprecated the Electron browser as a test browser. The Electron browser will be removed in a future major version of Cypress; switch to Chrome or another installed browser to avoid a breaking change when you upgrade. See Migrating away from the Electron browser.

Change

Chrome is the most used browser and is available in GitHub-hosted runners for each operating system, with the exception of ubuntu-24.04-arm, for which it has been requested through actions/runner-images#14567.

Use Firefox for ubuntu*-arm runner images.

For those examples that are not browser-specific, add the Browsers configuration setting defaultBrowsers: chrome.

Remove tests that explicitly specify electron.

This re-applies 68be0d4 from PR #1713.


Note

Low Risk
Changes are limited to example Cypress configs and workflow matrices; no runtime or security-sensitive application code is affected.

Overview
Prepares the repo for Cypress 16’s Electron browser deprecation by making Chrome the default test browser in example projects and tightening CI browser selection.

Example configs: Adds defaultBrowser: 'chrome' to the shared cypress.config.js files under examples/ (e2e, component, workspaces, etc.) so runs no longer rely on Electron when no browser is passed explicitly.

GitHub Actions: In example-basic.yml, both basic jobs pass a browser input of Firefox on ubuntu*-arm runners (where Chrome isn’t on the hosted image) and leave other OS matrix entries on the default. In example-docker.yml, Electron is dropped from the Docker browser matrix so container jobs only exercise Chrome, Edge, and Firefox (with existing arm64 Edge exclusion unchanged).

Reviewed by Cursor Bugbot for commit 963f971. Bugbot is set up for automated code reviews on this repo. Configure here.

Remove Electron tests
Re-applies cypress-io#1713
@cypress-app-bot

Copy link
Copy Markdown
Collaborator

@MikeMcC399 MikeMcC399 added the type: enhancement New feature or request label Sep 4, 2026
@MikeMcC399 MikeMcC399 self-assigned this Sep 4, 2026
@MikeMcC399
MikeMcC399 marked this pull request as ready for review September 4, 2026 16:17
@MikeMcC399
MikeMcC399 requested a review from mschile September 4, 2026 16:25
@MikeMcC399

Copy link
Copy Markdown
Collaborator Author

@AtofStryker

Would you like to merge, since you've approved?

@AtofStryker
AtofStryker merged commit ce5b2c7 into cypress-io:master Sep 9, 2026
97 checks passed
@MikeMcC399
MikeMcC399 deleted the default-browser-chrome branch September 9, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants