Skip to content

Latest commit

 

History

History
79 lines (53 loc) · 2.35 KB

README.md

File metadata and controls

79 lines (53 loc) · 2.35 KB

Welcome to Cypress to Playwright 👋

Version Documentation Maintenance License: MIT Twitter: 11joselu

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

  1. It will read all js files found in the <cypress_directory> folder.
  2. It will convert each cypress command (supported ones) to the playwright version.
  3. It will write the new files in the playwright folder at the same level as the indicated folder.
  4. 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.