Cypress → Playwright
mediumPlaywright offers faster execution, multi-browser support, and free CI reporting. API is different from Cypress but concepts map well. Microsoft-backed with consistent releases.
npm init playwright@latest
describe/it → test.describe/test. cy.visit() → page.goto(). cy.get() → page.locator(). cy.contains() → page.getByText().
cy.should('be.visible') → await expect(locator).toBeVisible(). Playwright uses async/await everywhere — no Cypress chaining.
Cypress custom commands → Playwright fixtures and page object models. beforeEach → test.beforeEach with async.
Playwright has built-in CI config. GitHub Actions: npx playwright install --with-deps && npx playwright test.
What this migration involves
Moving from Cypress to Playwright is rated medium and takes about 4-8h on a typical project. The guide breaks it into 5 steps, 1 of which ship with runnable commands and 1 with a verification check. On pricing, Cypress is freemium and Playwright is open-source with a free plan to test the move.
Related migrations
FAQ
How long does migrating from Cypress to Playwright take?
Around 4-8h for a typical project — 5 steps, difficulty rated medium, 1 of them with copy-paste commands.
Is moving from Cypress to Playwright reversible?
No reverse guide is tracked yet, so treat this as a one-way move and keep a full export of your Cypress data before you start.
What does Playwright cost compared to Cypress?
Cypress: freemium from $0/mo, free plan available. Playwright: open-source from $0/mo, free plan available.