cypress-to-playwright
cypress-to-playwright copied to clipboard
Migrate cypress e2e tests to playwright
trafficstars
Welcome to Cypress to Playwright 👋
Automatic migration from cypress to playwright

Prerequisites
- node >=16.0.0
Install
npm install @11joselu/cypress-to-playwright -D
Usage
npx @11joselu/cypress-to-playwright <cypress_directory>
How it works
- It will read all js files found in the <cypress_directory> folder.
- It will convert each cypress command (supported ones) to the playwright version.
- It will write the new files in the playwright folder at the same level as the indicated folder.
- Follow the steps indicated in the script.
Warning
Migration is not perfect, therefore you will have to make modifications in the new code
Supported migrations
Detailed table
Author
Jose Cabrera
Contributing
Run tests
npm run test
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
License
Copyright © 2023 Jose Cabrera.
This project is MIT licensed.