Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

Welcome to Cypress to Playwright 👋



Version


Documentation


Maintenance


License: MIT


Twitter: 11joselu

> 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.