October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

Modern Frontend Testing with Cypress: E2E, Component Tests, and Learning Resources

Cypress offers E2E tests for application journeys and component tests in a real browser. This guide explains how to choose, install, and learn Cypress, with compatibility and CI considerations.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Cypress supports two browser-based ways to test a JavaScript application: end-to-end (E2E) tests for user journeys across an application, and component tests for a focused component rendered in a real browser. Choose based on the behavior you need to validate, your framework and bundler, and the feedback your team needs—not on a claim that one test type replaces every other level.

Choose E2E or component testing by the behavior you need to check

Testing need Cypress approach What it establishes
Check that a user can complete a key journey through the application E2E Exercises the application through a browser and user-interface actions, against a running application server.
Check a component’s rendered behavior or appearance in a browser Component testing Mounts the component directly in a real browser, rather than a simulated DOM.
Test a Next.js page that relies on server-only methods E2E Cypress recommends E2E for pages whose server-side methods would not run in a component test.
Review CI outcomes, debug recorded failures, or coordinate a larger suite Cypress Cloud An optional service for results, test health, debugging, analytics, and orchestration.

Use a small number of E2E tests for critical journeys where a failure would be visible to users. Use component tests when focused feedback on a component’s browser rendering or interaction is the goal. These are complementary scopes; the available evidence does not establish a universal runtime, coverage, or effectiveness advantage for either strategy.

What Cypress includes—and what Cloud adds

The Cypress App is a free, open-source application installed locally in a project. Cypress Cloud is a separate SaaS companion for recording test runs and surfacing results and analytics. Cloud is optional; consider it when a team needs CI run visibility, debugging, integrations, or orchestration, and check the current pricing page for plan limits and terms.

Cypress Cloud’s overview describes integrations with GitHub, GitLab, and Bitbucket. Its plan entitlements and prices may change. Cypress currently lists a free Starter tier, Team starting at $67 per month when billed annually ($799 per year), Business starting at $267 per month when billed annually ($3,199 per year), and custom Enterprise pricing; confirm the live page before budgeting.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check framework and browser compatibility before installing

Component testing depends on the exact stack

Cypress-maintained component-testing integrations cover React, Vue, Angular, and Svelte, but support varies by framework version and bundler. The current matrix lists React 18–19 with Vite 8 or Webpack 5, and Next.js 15–16 with React 18–19 and Webpack 5; Vue 3 with Vite 8 or Webpack 5; Angular 21–22 with Webpack 5; and Svelte 5 with Vite 8 or Webpack 5, marked alpha. Qwik and Lit entries are community integrations. These version combinations are time-sensitive: consult the live component-testing setup guide and its framework-specific pages for your actual project.

Choose a supported browser

The installation guide lists support for the latest three major versions of Chrome, Edge, and Firefox. Firefox 141 and later require Cypress 14.1.0 or later. WebKit support is experimental. Cypress says its bundled Electron browser is deprecated and will be removed in a future release, so choose an installed browser such as Chrome rather than building a new workflow around Electron. Check the browser documentation for current details.

Install Cypress locally and launch the app

Install Cypress as a development dependency using your project’s package manager. The official installation guide gives these commands; use the matching command to open the interactive application:

  • npm: npm install cypress --save-dev, then npx cypress open
  • Yarn: yarn add cypress --dev, then yarn cypress open
  • pnpm: pnpm add cypress --save-dev, then pnpm cypress open
  • Bun: bun add cypress --dev, then bunx cypress open

For current command syntax and other installation details, use the official installation guide. The appropriate project setup differs between E2E and component testing; follow the setup flow for the testing type and framework you selected.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Build a reliable E2E workflow

Start the application outside Cypress

Run the application server in your local development or CI workflow before Cypress runs. Cypress documentation is explicit: “Don’t try to start a web server from within Cypress scripts.” Keep server startup and test execution as separate workflow steps. Cypress is optimized for local development, though it can also test deployed applications.

Keep assertions focused on user-visible behavior

For a journey test, frame assertions around what a user can observe: a form’s response, a navigation result, or a confirmation shown after an action. Avoid making a test depend unnecessarily on internal implementation details, which can change without changing the user-visible outcome. Cypress offers browser automation capabilities including screenshots, video, network stubbing, and debugging; their availability does not constitute an independent reliability guarantee.

Be deliberate about external dependencies

Tests that rely on third-party sites or services can add disruption and flake risk when those dependencies are unavailable or change. Use network stubbing where it fits the behavior being tested, and weigh the value of exercising a live external dependency against the maintenance cost. Cypress’s guidance does not establish a universal test count, runtime, or coverage target.

Plan CI resources realistically

Cypress’s installation guide recommends at least 2 CPUs and 4 GB of RAM for a CI machine, with 8 GB or more for long runs or video recording. These are vendor recommendations, not independently measured minimums. Cypress identifies abrupt exits, missing or frozen video frames, and longer runtimes as possible signs of insufficient resources. If these symptoms appear, inspect the CI machine’s available resources and run conditions before assuming a test assertion is at fault.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Learn Cypress over the next couple of weeks

Cypress’s free Real World Testing with Cypress portal currently lists four courses, more than 25 lessons, and more than 30 examples. It covers a first application, testing foundations, Cypress fundamentals, and advanced concepts, including installation, first tests, forms, custom commands, multiple pages, user journeys, debugging, test data, and test-type differences. Counts and course contents may change.

A practical way to use the material is to follow a first-application course while setting up a small project, then use the testing-foundations and fundamentals material to implement one focused component check and one critical user journey. Finish with debugging and test-data lessons relevant to the problems your project actually has; the portal is learning material, not a substitute for checking the compatibility of your stack.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If you need a website screenshot rather than an automated test of your own application’s behavior, ScreenshotNeo provides a screenshot API and MCP server. One GET request can return a PNG, JPEG, WebP, or PDF. For example, with cURL:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

See the ScreenshotNeo API documentation for request options. Cookie banners are accepted and removed before capture, along with known consent platforms, newsletter popups, and chat widgets; those steps can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report the page verdict and billing status. Its MCP server provides screenshot and page-information tools for AI agents. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots.

Sign up for ScreenshotNeo’s free plan.

Frequently Asked Questions

Does Cypress component testing use a simulated DOM?

No. Cypress mounts the component in a real browser.

Can I run Cypress tests against a deployed application?

Yes. Cypress supports testing deployed applications, although its documentation describes local development as the optimized workflow.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Shenzhen desk3 min
    HONOR Expands Beyond Smartphones With Humanoid Robot RevealHONOR said it unveiled its first humanoid robot at MWC 2026 and named shopping assistance, workplace inspections, and supportive companionship as intended uses. Later Robotics D1 claims and a reported…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.