An e2e testing framework in JavaScript developed using Cypress
The following e2e tests run against a publicly available application : https://www.saucedemo.com/
- Verify that a locked user cannot login to the system
- Verify User cannot login without a username
- Verify User cannot login without a password
- Verify User can login with correct credentials
- Verify User can successfully logout from the application
- Verify that the application redirects to the "About" page
- Node v10+
- NPM v6+
-
Clone and install :
git clone https://github.com/Ghada-1992/cypress-swaglabs.git cd cypress-swaglabs
-
Run Test Locally :
npm test
-
View Reports for Local Run :
After a run completion, Mochawesome generates report under
cypress/results/report/mochawesome.html
-
CI/CD :
-
CI is setup using CircleCI Orbs
-
Config for the CI is defined in
circle.yml
. -
It uses Cypress's predefined Orb which makes installing cypress, caching dependencies, parallel execution etc. with minimum effort and maximum efficiency.
-
View the Builds for this repo @ https://app.circleci.com/pipelines/github/Ghada-1992/cypress-swaglabs?branch=master ( You need to be logged in to your own CircleCI account using your GitHub credentials to view this )
-
View Mochawesome Report under
Artifacts
tab of the Job run
-