Author End-to-End Tests in Natural Language with KaneAI

Plan, Author, and Evolve E2E Tests for Web and Mobile Apps in Natural Language.

Cypress Is Retiring Its Electron Browser - Here Are Your Options

The Cypress Electron browser is deprecated in Cypress 16. See if your runs use it, then weigh 5 options: Chrome for Testing, Playwright, Selenium or AI agents.

Summarise with AI

Cypress runs that name no browser fall back to the bundled Electron browser, and since Cypress 16 each of those runs prints a deprecation warning. Once a future major version removes Cypress Electron support, the same runs fail with an error.

TL;DR

The vast majority of teams will only ever need one line of config. If your Cypress run has no --browser flag and your config doesn't specify a defaultBrowser, then you're running in Electron at the moment. Point them at Chrome for Testing prior to the release that removes Electron. Switching frameworks is a much bigger decision, and this deprecation in itself isn't a good enough reason to do it.

What Replaces the Cypress Electron Browser?

  • Chrome for Testing is Cypress's recommended replacement for the Electron browser, a Chrome build that never auto-updates. Run --browser chrome-for-testing, or use a Cypress Docker image with browsers in CI. Rewrite needed: No. Safari: No.
  • A cross-browser Cypress suite runs the same specs on Chrome, Firefox and Edge, as in cross-browser testing with Cypress, in 1-2 days of work. Rewrite needed: No. Safari: Experimental.
  • Playwright drives Chromium, Firefox and WebKit, but a Cypress to Playwright migration takes weeks to months. Rewrite needed: Yes. Safari: Yes.
  • WebdriverIO is a W3C WebDriver framework for JavaScript teams; moving a Cypress suite to it takes weeks to months. Rewrite needed: Yes. Safari: Yes.
  • Selenium suits teams with Java, Python or C# test code elsewhere; moving a Cypress suite to it takes weeks to months. Rewrite needed: Yes. Safari: Yes.
  • KaneAI is an AI testing agent by TestMu AI that writes tests from plain English or Jira tickets and exports Selenium, Playwright, Cypress or Appium code. Rewrite needed: Yes, rebuilt as agent tests.
  • TestMu AI runs existing Cypress suites in parallel across 3,000+ browser and OS combinations through Cypress testing, a route to Cypress parallelization without Cypress Cloud. Rewrite needed: No.

Disclosure: we build KaneAI at TestMu AI. It's one of the five options listed below with its trade-offs. Please judge it with that in mind.

What's Changing

In Cypress 16.0.0 the bundled Electron browser is deprecated as a test browser and will be removed in a future major version (no removal date has been set). They say they will give advance notice and publish a migration guide first.

WhenWhat happens
July 10, 2026Cypress announces the deprecation
Cypress 16.x (now)Electron still runs, with a deprecation warning in cypress run output and in the app
A future major (date TBD)Electron is removed. Any run that targets it, explicitly or through the old implicit default, fails with an error

Cypress gives four reasons:

  • Electron's Chromium is weeks or months behind the stable Chrome, so your tests are going to be completely missing out on web platform changes that your users are already experiencing.
  • Tests can pass in Electron and fail in Chrome. Electron has problems with dialogs and large file uploads.
  • Security fixes get their way in Electron only once a new Electron build has shipped.
  • Electron existed so you could run your tests without having to install a browser. The Docker image, the GitHub Action and the CircleCI Orb all now include browsers, so that's not such a big issue any more.

There's also a performance gap to be had. Cypress 16 runs Chrome, Chromium and Edge on the browser's native network stack (HTTP/2). Electron, Firefox and WebKit are all still on the old HTTP/1.1 proxy path.

Are You Affected?

You are if any run, local or CI, lands on Electron. Check these places:

  • A CI job runs cypress run with no --browser flag
  • cypress.config has no defaultBrowser, or sets it to 'electron'
  • Your CI uses the cypress/base Docker image, which ships no browser
  • Specs use { browser: 'electron' } overrides or check Cypress.isBrowser('electron')
  • Config or env sets ELECTRON_EXTRA_LAUNCH_ARGS, or before:browser:launch branches on Electron
  • Your CI logs show the Electron deprecation warning

If you've already got the --browser chrome (or Firefox or Edge) in place everywhere, then nothing changes for you.

To see the warning in a log, I ran one Selenium Playground spec on Cypress 16.5.0 twice: first with no browser set, then with defaultBrowser: 'chrome' in cypress.config.js.

Two Cypress 16.5.0 runs of the same spec: with no browser set it runs on Electron 150 (headless) (deprecated) and prints the deprecation warning; with defaultBrowser chrome it runs on Chrome 158 with no warning

The first run reports Browser: Electron 150 (headless) (deprecated) and prints the three-line warning; the second runs on Chrome 158 with no warning. Both runs pass, so in a green CI job the warning is the line that tells you a run still lands on Electron.

Your Options

1. Stay on Cypress and Switch to Chrome for Testing

This is what Cypress recommends and what most teams will end up doing. Chrome for Testing is a Chrome build that Google makes specifically for automation. It doesn't auto-update so your runs will be reproducible.

There's a corresponding binary for each version and OS, and it doesn't interfere with enterprise Chrome policies.

npx cypress run --browser chrome-for-testing

If you're happy with branded Chrome, then just set defaultBrowser: 'chrome' in cypress.config. In Docker use cypress/browsers rather than cypress/base. Note that cypress/browsers comes with branded Chrome, Firefox and Edge, so if you want Chrome for Testing you'll need to add it yourself.

Then of course you'll need to remove the Electron-only bits from the checklist above.

  • Effort: under an hour for most repos
  • Catch: budget a run to fix the tests that only passed in Electron (some of those will be real bugs; others will be Electron-only behavior that your tests have come to rely on).

2. Stay on Cypress and Widen Your Browser Matrix

While you're editing your CI anyway, run the same suite on Chrome, Firefox and Edge (which Cypress also recommends). You can run it on your own CI runners or on a hosted grid if you want to get parallel runs without having to manage your own machines. Cypress Cloud, BrowserStack, Sauce Labs and TestMu AI (ours) will all run your Cypress suite exactly as it is.

  • Effort: a day or two, mostly CI config and triaging new failures
  • Catch: Safari is still out of reach. Cypress's WebKit support is experimental. Grids cost money, and parallel runs in Cypress will require either Cypress Cloud or a third-party orchestrator.

3. Move to Playwright

Playwright drives Chromium, Firefox and WebKit through one API.

It runs outside the browser, handles multiple tabs natively and parallelizes for free. Cypress has got cross-origin flows sorted with cy.origin(), so the real gap is tabs. It also supports TypeScript, JavaScript, Python, Java and C#.

  • Effort: weeks to months, depending on suite size and how many custom commands you have
  • Catch: it's a rewrite, not a config change. You're simply swapping out Cypress's live in-browser command log for Playwright's Trace Viewer, which gives you the snapshots post-run. Component tests will need their own migration. Only really worth it if you were already at the limit of what Cypress could do (e.g. Safari coverage, multi-tab flows, CI speed).

4. Move to WebdriverIO or Selenium

This is the option you'd take if you already have Java/Python/C# test code running somewhere else, or if you just want the broadest possible browser and real device coverage. Both of them speak the W3C WebDriver protocol, and WebDriver BiDi now covers pretty much all of what the DevTools-based tools do.

  • Effort: similar to Playwright, often more
  • Catch: more setup and more waiting logic to write yourself. Only really worth it if you're also testing mobile apps with Appium or already have a Selenium Grid running.

5. Stop Hand-Writing the Tests: Use an AI Testing Agent

If sticking to the specs is going to cost you more than any browser change would, an AI agent can actually write and update the tests from plain English. Here are a few to look at:

  • mabl: low-code test automation platform with AI-assisted authoring and auto-healing
  • testRigor: tests written as plain-English steps
  • Momentic: AI-driven end-to-end testing for web and mobile apps
  • QA Wolf: a managed service that writes and maintains Playwright tests for you
  • KaneAI (ours): writes the tests from plain English or Jira tickets, can tidy up the steps when the UI changes and can export the tests as Selenium, Playwright, Cypress or Appium code.
  • Effort: low to start, but you rebuild your suite as agent tests rather than porting specs line by line
  • Catch: it is a paid platform. You trade some control over each step for speed of writing and less maintenance, and your team has to trust the new tool. Run it alongside your Cypress suite until it's doing the same checks.
Automate web and mobile tests with KaneAI by TestMu AI

Side by Side

OptionEffortRewrite neededSafariPick it when
1. Chrome for TestingUnder an hourNoNoYou just want CI green after the removal
2. Wider matrix on Cypress1-2 daysNoExperimentalYou want Firefox and Edge coverage too
3. PlaywrightWeeks to monthsYesYesYou already hit Cypress limits: Safari, tabs, speed
4. WebdriverIO / SeleniumWeeks to monthsYesYesYour org standardizes on WebDriver or non-JS languages
5. AI testing agentDays to startRebuilt, not portedDepends on the toolWriting and fixing specs is the real cost

For a quick visual walkthrough of this concept, watch the video below from TestMu AI.

Youtube thumbnail

Subscribe to the TestMu AI YouTube channel for more tutorials on testing and automation.

How to Pick

Do option 1 this week. It takes an hour and removes the deadline from all the other decisions.

After that, ask what actually hurts:

  • Nothing. Stop at option 1.
  • Bugs get to the user via the browsers that you don't test. Option 2. If Safari is one of them, then have a look at option 3.
  • The suite is slow, flaky and just can't cope with multi-tab flows - that's a framework issue. Trial Playwright (option 3) on one feature prior to you committing.
  • Writing and fixing tests takes far longer than actually shipping the features. Try an AI agent (option 5) on one user journey as a parallel to your existing test suite.

If you run a trial, then measure three things: time to write a new test, how many tests break when the UI changes and the CI minutes for a full run.

Conclusion

Start by searching your CI configs for cypress run calls with no --browser flag, then set defaultBrowser and rerun until the Cypress Electron deprecation warning is gone from your logs. Keep the three trial measures from How to Pick for any bigger move, and see getting started with Cypress testing to run the switched suite on Chrome, Firefox and Edge in the cloud.

Testing web or mobile apps without writing code? KaneAI by TestMu AI turns plain-English instructions into tests.

To run your first test, start free, or
for a full walkthrough of the product.

Was this helpful?

Authors

Mayank Bhola

Mayank Bhola

Author · 14 posts

Mayank Bhola is Co-Founder and Head of Products at TestMu AI, where he leads the entire product portfolio across KaneAI, Kane CLI, HyperExecute, SmartUI, the Real Device Cloud, Accessibility, and other software testing product lines. As an early Lead Architect he designed and built the company's flagship Tunnel technology from scratch, created the React-based automation platform, and architected the data-intensive pipelines and FAAS services that scale it. He brings more than 10 years of experience in software development and product engineering, with earlier roles as Head of Technology at Juggernaut Books and Senior Software Engineer at PressPlay TV and Zomato. Mayank holds a B.Tech in Computer Engineering from JIIT Noida.

Srinivasan Sekar

Srinivasan Sekar

Reviewer

Srinivasan Sekar is Director of Engineering at TestMu AI, where he leads engineering and open-source initiatives behind the Selenium and Appium automation grid and owns TestMu AI's MCP Server. A committer to Appium and a contributor to Selenium, WebdriverIO, Taiko, and AppiumTestDistribution, he brings over 15 years of experience in quality engineering and open-source technologies. He is the author of the Apress book 'The MCP Standard: A Developer's Guide to Building Universal AI Tools with the Model Context Protocol,' a Certified Kubernetes and Cloud Native Associate, and an international conference speaker. Before TestMu AI he spent over eight years at Thoughtworks as a Principal Consultant and Quality Architect. Srinivasan holds a B.Tech in Information Technology from Anna University.

Cypress Electron FAQs

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests