This project uses the brand new Cypress 10 to automatize API and E2E tests upon public transparency reports published by the Labor Court of 13th Region. All reports are publicly available on its transparency page.
It is required to have Node.js and npm installed to run this project.
I've used versions
v16.15.0
and8.5.5
of Node.js and npm, respectively. I recommend you to use the same or later versions.
After clone the project, run npm install
(or npm i
for the short version) to install the dev dependencies.
Run npm test
(or npm t
for the short version) to run the test in headless mode.
Or, run npm run cy:open
to open Cypress in interactive mode.
A simple CI workflow was created for this projects using Github actions. You can read more about it at Cypress.io github-action project.
The purpose of this project is to be an use case of how we can perform E2E and API tests upon a real application using Cypress.
- Due to make tests independent and fast, all API calls are being mocked using fixture files.
- Spec files, now called cy files, are in the
e2e folder
. - Custom commands are defined at
api_commands
andgui_commands
, booth atsupport
folder.
This project was created by Benjamin Pinto.