Which browsers and operating systems does Cypress support?
Cypress runs tests in Chrome-family browsers (Chrome, Chromium, Chrome for Testing, Edge) and Firefox, with experimental WebKit support. WebKit is the Safari engine, not Safari itself. Real Safari on an iPhone, mobile browsers and native apps are out of reach; a mobile view is only emulated by window size. Real devices need a cloud device farm or Appium, and exact Node and OS versions come from the documentation.
Cypress · Practice and details
A client asks to «also check in Safari on an iPhone». What can Cypress do about it?
Choosing a tool comes down to «where will it run». Cypress runs tests in a real browser, but not in any browser. The lesson records what is supported, what is missing and how to talk about versions carefully.
How it works and why
Cypress runs inside the browser, so it needs the browser to let its agent start and to offer the debugging capabilities it uses. That is why support goes by families. The documentation names Chrome-family browsers (including Edge and Chrome for Testing) and Firefox, and adds WebKit as experimental support. The Chrome family includes Chrome, Chromium, Chrome for Testing and Edge. WebKit is enabled with a separate option and is the Safari engine, not Safari itself. Cypress bundles Electron, and it is what cypress run uses when no browser is given through --browser. Since Cypress 16 Electron is deprecated as a test browser and will be removed, so in CI name the browser explicitly.
What is in and what is out
Browsers
Chrome family (including Edge), Firefox, WebKit (experimental), Electron (deprecated since 16).
Out of scope
Real Safari, Internet Explorer, Opera, mobile browsers and native apps.
cy.viewport), not by a mobile browser.System requirements (per the Cypress install page, 2026-11): Windows 10 and 11, macOS 13.5 and newer, Linux (for example Ubuntu 22.04+, Debian 12+); Node.js 22.x, 24.x and 26+. Such minimums shift with every major release, so in an interview it is better to name the principle («current LTS Node versions and supported OSes») and say the exact numbers come from the documentation.
Example: before → after
Before: «Cypress will cover Safari on an iPhone too». After: an honest talk about coverage. Choosing a browser:
npx cypress run --browser chrome
npx cypress run --browser firefox
npx cypress run --browser edge
// a matrix of sizes (emulation, not a mobile browser)
const sizes: Cypress.ViewportPreset[] = ['iphone-x', 'ipad-2', 'macbook-15'];
sizes.forEach((size) => {
it(`menu works on ${size}`, () => {
cy.viewport(size);
cy.visit('/');
cy.get('[data-cy=menu]').should('be.visible');
});
});
Takeaway for the client: Cypress covers Chrome, Edge, Firefox and (experimentally) WebKit and emulates a mobile layout, but real Safari on an iPhone needs another tool: a real-device cloud or Appium.
// a test for certain browsers only
it('works in Firefox', { browser: 'firefox' }, () => { /* ... */ });
it('skips Firefox', { browser: '!firefox' }, () => { /* ... */ });
// branching in code
if (Cypress.browser.name === 'webkit') { /* ... */ }
# a browser matrix in CI (GitHub Actions)
strategy:
matrix:
browser: [chrome, firefox, edge]
steps:
- run: npx cypress run --browser ${{ matrix.browser }}
For WebKit enable experimentalWebKitSupport: true in the config and install the playwright-webkit package; without it a WebKit run does not start.
Limits and alternatives
- WebKit in Cypress ≠ Safari: the engine is the same but the shell, versions and OS behaviour differ. Experimental means a risk of instability.
- Native mobile apps: Appium (or other mobile frameworks), not Cypress.
- Playwright supports Chromium, Firefox and WebKit across the board, plus mobile device emulation, but also not native apps.
Common mistakes
- Promising «Safari coverage» through the WebKit mode without the experimental caveat.
- Quoting exact minimum Node or OS versions from memory: they change and are checked in the documentation.
- Treating
cy.viewport('iphone-x')as an iPhone check: it is only a window size.
Check yourself
What do you answer to «cover Safari on an iPhone with Cypress»?
Answer
Cypress can emulate the screen size and run WebKit experimentally, but that is not real Safari on a device. That needs a real-device farm or Appium.
How does the WebKit mode in Cypress differ from Safari?
Answer
It is the same engine but without the Safari shell, macOS and iOS specifics, and with experimental status.