Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/11joselu/cypress-to-playwright
Migrate cypress e2e tests to playwright
https://github.com/11joselu/cypress-to-playwright
Last synced: 21 days ago
JSON representation
Migrate cypress e2e tests to playwright
- Host: GitHub
- URL: https://github.com/11joselu/cypress-to-playwright
- Owner: 11joselu
- License: mit
- Created: 2023-03-01T10:54:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-05T07:36:43.000Z (7 months ago)
- Last Synced: 2024-12-23T13:33:53.975Z (about 1 month ago)
- Language: TypeScript
- Size: 766 KB
- Stars: 39
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Welcome to Cypress to Playwright 👋
> Automatic migration from cypress to playwright
![](https://github.com/11joselu/cypress-to-playwright/blob/main/docs/migration-example.gif)
## Prerequisites
- node >=16.0.0
## Install
```sh
npm install @11joselu/cypress-to-playwright -D
```## Usage
```sh
npx @11joselu/cypress-to-playwright
```## How it works
1. It will read all js files found in the 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](/docs/migration.md)
## Author
**Jose Cabrera**
* Website: https://twitter.com/11joselu
* Twitter: [@11joselu](https://twitter.com/11joselu)
* Github: [@11joselu](https://github.com/11joselu)## Contributing
### Run tests
```sh
npm run test
```Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/11joselu/cypress-to-playwright/issues).## License
Copyright © 2023 [Jose Cabrera](https://github.com/11joselu).
This project is [MIT](https://github.com/11joselu/cypress-to-playwright/blob/master/LICENSE) licensed.