This repository contains a simple example of login automation using Cypress. The project demonstrates how to automate the login process on a login form and handle different scenarios such as successful login and invalid credentials.
- Node.js and npm installed on your machine.
- Clone the repository to your local machine:
https://github.com/JubairRahman/Login-automation-cypress.git
cd login-automation-cypress
- Install dependencies using
npm
:
npm install
-
To open the cypress Test Runner,run:
npx cypress open
-
Click on the login_spec.js file in the Cypress Test Runner to run the login automation test.
-
The test will open a browser and perform the login actions. You will see the test results in the Cypress Test Runner.
You can You can customize the index.html and script.js files in the project to match the login form of your application. Update the Cypress test in cypress/e2e/login_spec.cy.js accordingly to handle the specific behavior of your login form.
This project is licensed under the
Contributions are welcome! If you find any issues or want to enhance the automation, feel free to create a pull request.
For any questions or suggestions, please 📧 open an issue or reach out to me on 💼 or 💬 .
Happy automating! 🚀