Created: November 24, 2026

Playwright vs. Cypress: How to Decide Whether to Move an Existing Test Suite

Karina Krinitskaya

Karina Krinitskaya

AQA Engineer

Quality Assurance
Playwright vs. Cypress: How to Decide Whether to Move an Existing Test Suite

A production regression slips through while your Cypress pipeline stays green. That is a stronger reason to review your E2E suite than a faster benchmark from another team. The question is whether changing frameworks would expose the missed failure without creating more maintenance work.

For a QA Lead or Engineering Manager, this Playwright vs. Cypress decision guide proposes a small, controlled pilot: run three equivalent journeys against known defects on a test environment. You will have evidence for a full move, a partial move, or a repair to the existing setup.

Key takeaways

Compare how the frameworks run your journeys

Start with the browser your customers use and your CI already runs. Playwright supports Chromium, Firefox, and WebKit, plus supported Chrome and Edge channels. Its WebKit build is not branded Safari. Cypress supports Chrome-family browsers and Firefox, with experimental WebKit support; check your installed version and its limitations.

Run the initial comparison on the same supported browser channel and version wherever possible. Report extra engines separately: a Chromium result and a WebKit result cannot isolate the framework's effect.

Use this compatibility checklist before translating tests:

AreaWhat to verify on the actual journey
SessionsFresh login state, equivalent roles, and no dependence on a preceding test
NavigationSame destination, redirects, origin changes, and popup behavior
FramesSame embedded interaction, including its origin and authentication
WaitingSame visible readiness condition and assertion deadline
NetworkSame request, response payload, failure mode, and interception scope
CISame app build, runner resources, workers, browser mode, and artifacts

Playwright isolates tests with browser contexts. Match that independence in your Cypress setup rather than giving one runner cleaner state. Cypress supports cross-origin navigation through cy.origin, and documents multi-tab testing; check browser support and dependencies for the version you use. Playwright provides frame locators, while Cypress documents limitations around iframe handling.

Both provide retrying behavior, but Playwright actionability checks and Cypress query retries are not interchangeable scripts. Replace fixed sleeps with observable conditions, then explain any remaining behavioral difference.

Select equivalent checks

Write a short acceptance contract for each journey before implementation. Specify the application commit, account role, fixture version, starting state, expected user effect, and evidence captured. Agree on one measurable pass condition and a deadline based on the product requirement. Both implementations must enforce it.

Use these hypothetical journeys on a dedicated test environment. The faults below are controlled application changes, not results from a Mad Devs project.

JourneyOne pass conditionSeeded defect
Ordinary action: save a profileAfter reload, the profile name equals the submitted valueSave reports success but discards the new name
Page transition: open an orderThe destination displays the selected order's IDNavigation resolves to a different order
Request failure: submit an applicationA 503 response produces a visible recovery message within the agreed deadlineThe UI displays a success message instead

A save toast alone does not satisfy the first contract. A URL change alone does not satisfy the second. For the third, successfully injecting a 503 does not prove the application handled it correctly. Assert the user-visible effect. Keep the injected 503 in both healthy and faulty application variants; change only the error-handling behavior.

Seed independent records for each run and reset them afterward. Match clock, locale, authentication, and external-service behavior where they affect the outcome. Register network handlers before triggering requests, and verify that the intended request matched.

For media-dependent paths, Kirill Anisimov's Mad Devs write-up on Playwright fake media inputs shows a reproducibility technique. It does not report a Cypress migration. Apply that distinction here: controlled inputs help comparisons, but framework changes alone cannot fix inconsistent fixtures or shared environments.

Compare defect detection and run cost

Run each journey against a healthy build first, then its faulty variant with the other two defects disabled. Confirm the fault independently through application evidence. If the seeded defect never activates, a passing test says nothing about detection. Remove the fault and verify recovery before moving on.

Use the same predeclared number of repetitions for both implementations. For example, choose 20 healthy attempts and 20 faulty attempts per journey as a pilot budget, not a statistical guarantee. Alternate framework order to reduce the effect of a warming cache or changing environment. Retain every attempt and its build identifier.

Record four outcomes explicitly:

Report misses over valid faulty attempts, and show excluded attempts separately. Investigate a mismatch before scoring it. One implementation may assert persisted data while the other only checks a notification. A timeout might reflect a shorter deadline, an exhausted runner, or an actual application delay. Save the assertion, request evidence, screenshot, and relevant logs so the explanation is reviewable.

Keep the first attempt's result even if a retry passes. Report first-attempt failures, retry recoveries, and final failures separately. A green retry does not erase intermittent behavior; a repeatable seeded defect should remain detectable after retry too. Avoid counting assertion polling as a fresh test attempt.

Repeat the comparison locally and in CI, recording headed or headless mode, browser version, worker count, fixture isolation, and dependency versions. If CI alone fails, check resource contention and configuration differences before rewriting tests. With Playwright routing or Cypress interception, verify the failure injection actually reaches the application; service workers and caching deserve investigation when requests appear missing.

Measure elapsed pipeline time alongside total runner minutes, including retries, setup, and artifact uploads. More workers can reduce waiting while consuming more compute. Track hands-on hours for translation, debugging, fixture changes, and updating both suites after one representative product change. This makes dual maintenance visible before a broad migration commitment.

Choose a move, a split or a repair

Make a decision per journey before choosing a suite-wide direction. This table describes hypothetical evidence patterns and proposed responses; it contains no measured benchmark results.

JourneyIf the pilot shows thisDecision to validate
Profile saveBoth catch the defect; both fail when records collideRepair data isolation and rerun
Order navigationPlaywright catches the defect; Cypress misses it because its assertion checks only the URLRepair the Cypress assertion before claiming a framework advantage
Failed submissionBoth catch the defect; Playwright meets the agreed budget with less measured maintenance effortConsider moving this path first; validate adjacent error paths

A full move becomes defensible when representative paths preserve required defect detection, browser coverage, and release feedback within an agreed operating budget. Three journeys justify a next step, not an assumption that every remaining test is equivalent. Inventory custom commands, plugins, reporters, and exceptional flows before committing the rest.

A split can make sense when only a bounded set of journeys benefits. Define the boundary by risk or capability, record which suite owns each assertion, and keep one authoritative release gate per migrated journey. Otherwise, teams may maintain duplicate checks without knowing which result to trust.

For a proposed pilot window, use two release cycles, with an explicit review date. Assign a QA owner for equivalence and fault evidence, a CI owner for resources and artifacts, and a product team owner for fixture upkeep. Set a maintenance-hours ceiling and a rollback condition before parallel operation begins.

PayPay describes an isolated parallel pipeline; Testrig reports a lending-platform migration. These are contextual examples, not forecasts. If failures belong at an interface boundary, use Karina Krinitskaya's Mad Devs guide to contract testing integration boundaries to assess earlier detection while preserving E2E coverage of the user outcome.

Conclusion

Start with the three journeys that reveal the most about your suite: a persisted action, a meaningful transition, and a recoverable request failure. Agree on their outcomes, seed one defect each, and compare valid first attempts before retries or headline runtime. Then choose the smallest justified change. A move, a split, or an environment repair is useful only when the evidence explains what it improves and who will maintain it.

QA & Software Testing
Validate your E2E migration decision
Mad Devs can review critical user journeys, build comparable test runs and document whether a full move, partial move or test-suite repair is justified.
Discuss your E2E suite →