This is a solution for the Gerimedica automation task The website is not available in my country -Egypt- so the tests might fail and need minor tweaks, but it shows the concept. I used a VPN for the first part and then the VPN got blocked
The Project is divided into two:
- e2e automation:
- API automation: I decided to automate https://gorest.co.in/, as the other website is not available in my country, but it mainly shows the same concept
you can use yarn to install it
yarn install
To run and lunch the browser you can use
yarn cypress open
To run in the headless mood you can use:
yarn cypress run
To only run the web or api you can use this command
yarn cypress run --spec cypress/e2e/{api or web}/