This repository contains end-to-end web automation tests using Cypress for CURA Healthcare Service. These tests ensure the functionality and reliability of healthcare services regarding logging in and making an appointment.
Before getting started, make sure to have the following software and tools installed on your machine:
-
Clone this repository:
git clone https://github.com/your-username/your-repo.git cd cypress-web-automation
-
project dependencies: npm install
Writing Tests
You can write your test cases in the cypress directory. Each .cy.js file contains test cases. You can use custom commands defined in cypress/support/ to improve test readability and maintainability.
To run the tests, use the Cypress Test Runner:
npx cypress open
This will open the Cypress Test Runner, where you can select and run your test files.
You can customize Cypress configurations by editing the cypress.json or cypress.config.js files. These configurations include browser settings, environment variables, and more.
This project uses the Mochawesome reporter to generate test reports. The reports are saved in the cypress/reports directory. You can customize the report filename and directory in cypress.config.js.
To generate HTML reports manually, use the following commands: npx mochawesome-merge cypress/reports/*.json > merged-report.json npx mochawesome-report-generator merged-report.json