How do I migrate Cypress tests to Playwright?
Point the Test Adapter at your Cypress folder. It converts the specs to Playwright by rule, shows each diff, keeps every assertion and lists what no rule covers as leftovers. It is in beta, so expect to finish some files by hand or with the optional AI. A converted test does not count until it passes three rehearsals in a sandbox.
Last updated:
By the Nexus StudioQA team, Verdict System LLC. November 25, 2026.
What converts by rule?
Each line below is proven by a case in the adapter's test batteries, not by a promise. The rest is a leftover.
| In your Cypress spec | What the adapter does |
|---|---|
cy.visit, cy.get, cy.contains, cy.url, cy.title | Converted to Playwright. |
click, type, clear, select, check, uncheck | Converted, including type with {enter}. |
should with be.visible, have.text, have.value, have.length, contain | Converted, and the assertion count is checked before and after. |
cy.intercept with a fixture, then cy.wait('@alias') | Converted. The wait is created before the visit, and the fixture JSON travels with the test. |
cy.request with a status check | Converted. |
Cypress.Commands.add and cy.login() | The command becomes an exported function, and the call becomes a function call that takes the page. |
Cypress.env('apiUrl') | Becomes process.env.E2E_API_URL, and the Studio lists the variable. |
cy.task, cy.session, visual-testing plugins | Not converted. They stay as leftovers with their original lines. |
How do I run the migration?
- Open the Test Adapter tab in the Studio and point it at the folder, so the specs, their fixtures, their support commands and their page objects travel together. A spec imported alone without a fixture or a custom command it needs is not saved, and the leftover says what is missing.
- Read the diff, which shows the original and the converted test side by side with the assertion count before and after.
- Accept the files you trust. A conversion that would lose an assertion is blocked unless you accept the loss, line by line.
- Let each converted test rehearse. It starts in a sandbox that writes no evidence and no history, and it leaves after three clean rehearsals, each on a different browser.
- Deal with the leftovers by hand, or with the optional AI, whose code faces the same strict Vet as any AI-written test.
How does it do on a real project?
Measured once, on 2026-11-03, on two public Cypress suites: about half the files of one converted by rule with nothing left over, and none of the other, whose tests lean on project code. On a large project, expect some files to need the last step.
What are the limits?
- The conversion is beta. Cypress component testing and Cucumber are out of scope.
- Not covered by the test batteries yet, so do not rely on them:
dblclick,rightclick,cy.interceptwith a function handler andCypress.Commands.overwrite. - The Studio is a Windows 11 app. The converted tests are plain Playwright files.
Common questions
Does the conversion use AI?
No. The conversion is a set of fixed rules. An optional AI handles only the parts no rule covers, and its code faces the strict Vet before it is accepted.
Can the migration lose an assertion?
Not silently. If a converted test would lose an assertion, the import is blocked unless you accept the loss, line by line.
What happens to the code the adapter cannot convert?
It stays as a listed leftover with its original lines, for the optional AI or for you to finish by hand.
Does it convert Cypress component tests?
No. Component testing is out of scope for the adapter today. It converts end-to-end specs.
The free trial runs the same tests with verdicts and evidence, and the getting started guide lists the requirements.