This project contains automated tests for the Orange HRM system using Cypress. The tests cover essential functionalities such as user login and updating user information.
The test suite follows a structured approach:
login.spec.cy.js
- Tests for the login functionality, including both success and failure scenarios.user.spec.cy.js
- Tests for updating user information within the Orange HRM system.fixtures/
- Stores test data such as user credentials.pages/
- Implements page object models for different parts of the Orange HRM system (e.g.,LoginPage
,DashboardPage
,MenuPage
,MyInfoPage
).
Ensure you have the following installed before running the test suite:
Clone the repository and install dependencies:
npm install
Run Cypress tests using the following command:
npx cypress open
This will open the Cypress Test Runner, where you can manually execute the tests.
Alternatively, run tests in headless mode:
npx cypress run
- Login - Fail: Attempts login with invalid credentials and verifies the failure message.
- Login - Success: Logs in with valid credentials and verifies access to the dashboard.
- User Info Update - Success: Logs in with a valid user, navigates to the "My Info" section, and updates personal and employee details.
- Cypress - End-to-end testing framework.
- Chance.js - Used for generating random test data.
- JavaScript (ES6)
Feel free to submit pull requests or report issues.
This project is licensed under the MIT License.