
A web application can pass every unit test and still break for the user: a button stops submitting the form, a redirect loops after login, a checkout step waits forever on an API that changed. Catching that means testing the application the way a person uses it, in a real browser. Cypress is a JavaScript testing tool built for exactly that kind of browser test, with a developer experience that made automated UI testing far less painful than it used to be.
This article explains what Cypress is, how it runs tests, what it is good at, where its limits are, and how it compares with Playwright and Selenium.
What is Cypress?
Cypress is an open-source testing framework for anything that runs in a browser. Its main use is E2E testing: scripts that open the application, click, type and navigate like a user, and assert that the right things happen. It also supports component testing, where a single React, Angular, Vue or Svelte component is mounted in a real browser and tested in isolation.
The project started long before its public launch. The first commit was made on 5 June 2014, and Cypress spent several years in private beta with early adopters. Brian Mann announced in May 2017 that it would go open source, and Cypress 1.0.0 was released on 8 October 2017 under the MIT licence, followed two days later by the public beta announcement.
Cypress has two parts. The Cypress App, the test runner, is open source and free. Cypress Cloud is a separate paid service for recording runs, reviewing results and spotting flaky tests over time.
How Cypress works
Tests run inside the browser. Older tools such as Selenium control the browser from outside through a driver. Cypress runs its test code in the same browser as the application, so it can read the DOM, the network and application state directly. Code that needs to reach outside the browser, such as seeding a database or reading a file, goes through cy.task() or cy.request().
Commands are queued and retried. A test is a chain of commands such as cy.visit(), cy.get(), cy.click() and .should(). Cypress queues them and, for queries and assertions, keeps retrying until the condition is met or a timeout passes. That is why Cypress tests rarely need manual waits or sleeps, a common source of slow and flaky tests in other tools.
Time travel and debugging. While a test runs, Cypress takes a snapshot at each step. In the Command Log you can hover over any step and see what the page looked like at that moment, then open the browser's developer tools to inspect it. Failed runs in CI produce screenshots and, optionally, videos.
Network control. With cy.intercept() a test can watch, stub or delay HTTP requests. You can test an error page or an empty state without changing the backend, or make a slow API predictable.
Key features
- E2E and component testing in one tool, with the same commands and debugging experience.
- Automatic waiting and retries, which remove most hand-written waits.
- Time-travel snapshots and readable error messages in the Command Log.
- Network stubbing and spying with
cy.intercept(). - Chrome-family browsers (including Edge) and Firefox, locally and in CI.
- JavaScript and TypeScript tests, with familiar Mocha-style
describeanditblocks. - Plugins for accessibility checks, visual testing and more.
Where Cypress is used
- Critical user flows in web applications: sign-up, login, search, checkout, payments and permission checks.
- Regression suites in CI pipelines, run on every pull request before a change is merged.
- Front-end teams that want developers, not only QA engineers, to write and maintain browser tests.
- Component libraries and design systems, where components are tested in a real browser across states.
- SaaS dashboards with many forms and data tables, where small UI changes can break workflows.
When to choose Cypress, and when not to
Choose Cypress when:
- The application is a modern single-page or server-rendered web app, and the team writes JavaScript or TypeScript.
- Developers will write the tests, and fast feedback with visual debugging matters to them.
- You want one tool for E2E and component tests.
- Flaky, timing-based tests are the main problem with your current suite.
Look elsewhere when:
- You need Safari/WebKit coverage as a first-class target, or several browser tabs and windows in one test. Cypress is bound to one browser at a time, and multi-tab testing needs a plugin. Playwright covers both natively.
- The test team works in Python, Java or C#. Cypress tests are JavaScript only.
- You are testing native mobile apps. Tools such as Appium or Detox are built for that.
- You need load or performance testing. Cypress documents that it is not a general-purpose automation tool.
Cypress's own documentation lists further trade-offs: each test is bound to a single superdomain unless you use cy.origin(), there is no native hover command, and iframe support is limited.
Cypress and its alternatives
| Tool | How it drives the browser | Languages | Best fit |
|---|---|---|---|
| Cypress | Runs inside the browser | JavaScript, TypeScript | JS teams, developer-written UI tests |
| Playwright | Controls browsers from outside | JS/TS, Python, Java, .NET | Cross-browser incl. WebKit, multi-tab flows |
| Selenium | W3C WebDriver protocol | Many languages | Large existing suites, wide language choice |
| Jest / Vitest | No browser (Node.js) | JavaScript, TypeScript | Unit and logic tests |
The most common comparison now is Cypress vs Playwright. Playwright, from Microsoft, supports Chromium, WebKit and Firefox and several languages, and handles multiple tabs and origins natively. Cypress offers a more visual debugging experience and an in-browser model many front-end developers find easier to start with. Both are solid; the browser matrix and the team's language usually decide.
Cypress vs Selenium is a difference in design. Selenium drives the browser through WebDriver, a W3C Recommendation since June 2018, and works with almost any language. That breadth suits large QA organisations; Cypress trades it for speed of writing and debugging tests.
Neither replaces unit tests. A healthy suite has many fast unit tests in Jest or Vitest, and a smaller set of browser tests for the flows that matter most, run from a pipeline such as GitHub Actions.
How we use Cypress at Internative
We use Cypress to verify the critical user flows in the web applications we build. Its speed, debugging tools and predictable behaviour help us catch front-end issues early, so releases go out with confidence.
If you are building a web application and want its key flows covered by automated tests from the start, our web application development team can help, and our DevOps team can run those tests in your delivery pipeline.
Frequently asked questions
What is Cypress used for in QA testing?
Cypress automates browser tests: it opens the application, performs the steps a user would take, and checks the results. QA and development teams use it for E2E regression suites, component tests and smoke tests that run in CI on every change.
Is Cypress free?
The Cypress App, the test runner you install and run locally or in CI, is open source under the MIT licence and free. Cypress Cloud, which records runs and adds analytics, test replay and flaky-test management, is a paid service with its own plans.
What is the difference between Cypress and Selenium?
Cypress runs inside the browser and is written in JavaScript or TypeScript, which gives it direct access to the page and automatic waiting. Selenium controls the browser from outside through the WebDriver protocol and supports many languages. Cypress is usually faster to write and debug; Selenium covers more languages and browsers.
Cypress or Playwright?
Choose Cypress if your team writes JavaScript and values its visual, in-browser debugging. Choose Playwright if you need WebKit, multiple tabs or origins, or tests in Python, Java or .NET. Many teams evaluate both on a few real flows before deciding.
Can Cypress test APIs?
Yes, to a degree. cy.request() sends HTTP requests and lets you assert on responses, and cy.intercept() stubs or inspects the requests the application makes. For a dedicated API test suite, a tool such as Postman or a code-based API test framework is usually a better fit.
Keep reading
The articles that follow this one.



