Skip to the page

End-to-end and component testing · mid

Cypress vs Playwright

Cypress runs your test code inside the browser next to the app with a strong interactive runner, while Playwright drives browsers from outside over a protocol, supports Chromium, Firefox and WebKit, multiple tabs and origins, and free parallelism; most new projects in 2026 pick Playwright, but both are valid.

The notes

What you must know

  • Architecture: Cypress test code runs in the browser (in-page access, time-travel UI; Node work goes through cy.task). Playwright runs in Node and controls browsers out of process.
  • Browsers: Playwright covers Chromium, Firefox and WebKit (Safari engine). Cypress covers Chromium-family and Firefox; WebKit support is experimental.
  • Multi-tab, multi-origin, iframes and downloads are simpler in Playwright. Cypress has cy.origin for cross-origin steps.
  • Async model: Cypress commands are queued and chained (no await); Playwright uses normal async/await.
  • Parallelism: built-in and free in Playwright (workers, sharding); Cypress parallelisation and its dashboard are mainly through Cypress Cloud.
  • AI features: Cypress cy.prompt (plain-English steps, beta in 15.13, Mar 2026); Playwright test agents (planner, generator, healer) and an MCP server.

The red pen

Common traps: mistake → fix

  • Mistake: "Cypress can test Safari"

    Fix: WebKit support is experimental; Playwright's WebKit is the usual choice for Safari-engine coverage.

  • Mistake: "You can await Cypress commands"

    Fix: they are enqueued, not promises; use .then or aliases.

Easy to hard

Questions interviewers ask, easy to hard

  1. Cypress vs Playwright: which would you choose for a new project and why?
  2. What architectural difference explains most of their trade-offs?
  3. Your team has 400 Cypress tests. Would you migrate? How would you decide?

Practise

Practise with these questions

Explain it out loud

Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.

Practise by voice

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview