This repo contains several tests from different websites with the e2e tests written in Cypress.
The tests are heavily commented to ease you into the Cypress API.
Websites used for testing are:
https://opensource-demo.orangehrmlive.com/
http://the-internet.herokuapp.com/windows
https://itera-qa.azurewebsites.net/home/automation
https://www.zoho.com/commerce/free-demo.html
https://www.dummyticket.com/dummy-ticket-for-visa-application/
https://the-internet.herokuapp.com/javascript_alerts
All these websites are used in separate test files to solve different problems.
This repo uses Mocha and Chai for tests structure and assertions respectively.
Tools Used:
1.Programming Language: Javascript
2.Web Automation Tool: Cypress(latest version)
3.Framework to structure tests: Mocha
4.Assertions Tool: Chai
Scenarios covered in this project:
-
Visiting a website and verifying the page title
-
Handling child tabs demo
-
How to handle radio buttons and checkboxes
-
Mouse operations demo
-
How to test a feature that has an incrementing value
-
Handling frames
-
Handling drop downs
-
Assertions demo
-
How to handle different types of alerts
Help + Testing
The steps below will take you all the way through Cypress. It is assumed you have nothing installed except for node + git.
If you get stuck, here is more help:
https://www.cypress.io/support/
1. Install Cypress
Follow these instructions to install Cypress.
https://docs.cypress.io/guides/getting-started/installing-cypress
2. Add the project to Cypress
https://docs.cypress.io/guides/end-to-end-testing/writing-your-first-end-to-end-test
3. Run in Continuous Integration
https://docs.cypress.io/guides/continuous-integration/introduction