Before you begin, ensure that you have the following dependencies installed:
- Node.js
- NPM
Follow these steps to set up and run the tests on your local machine:
- Clone the Repository:
git clone <repository-url>
- Intall Dependencies:
npm install
- Run ESlint:
npm run lint
Additionally, you can run lint fixes:
npm run lint:fix
- Run Prettier:
npm run prettier
Execute the tests using the following commands:
- Run Tests in Headless Mode with Generated JSON/HTML Report:
npm run cy:open--e2
The generated reports will be available in the cypress/reports directory
- Run tests in headless mode:
cy:run--e2e