Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/harmin-parra/playwright-nodejs-examples

Cypress sample tests rewritten into Playwright (Node.js)
https://github.com/harmin-parra/playwright-nodejs-examples

Last synced: about 1 month ago
JSON representation

Cypress sample tests rewritten into Playwright (Node.js)

Awesome Lists containing this project

README

        

# playwright-nodejs-examples

These are the Cypress (https://example.cypress.io/) sample tests, but they have been rewritten into [Playwright](https://playwright.dev/docs/intro) (Node.js).

Be aware that some Cypress commands don't have an equivalent in Playwright, thus some workarounds are proposed whenever possible.

If you find a better solution or do you have an alternative solution to one of the tests, please share it with me by raising an [issue](https://github.com/harmin-parra/playwright-nodejs-examples/issues).

---
### To execute the tests:

1. Install [Playwright](https://playwright.dev/docs/intro) for nodejs.

2. Download the project

``git checkout [email protected]:harmin-parra/playwright-nodejs-examples.git``

or download and unzip the [zip file](https://github.com/harmin-parra/playwright-nodejs-examples/archive/refs/heads/main.zip) of the project

3. Enter the folder of the project

``cd playwright-nodejs-examples``

4. Execute the test

``npx playwright test``