This repository shows a simple example to execute API call using Cypress. Marvel's API is used in this example.
- Clone the project
- Run
npm i
to setup the project - Run
npm cypress:open
to open cypress - Run
npm test
to execute the tests
Note that it's required to update the keys in the "marvel-api-test.js" file for the test to run properly.
This is a simple article talking about Cypress and API testing: https://medium.com/@ali.haydar/api-testing-with-cypress-d8c60ed6aa2e