This Project automates SauceDemo.com website using Cypress.io and Page Object Model. Also generates Mochawesome Reports.
- Install latest Chrome browser
- Install Node.js (6 or higher)
- Install the project dependencies by running command:
npm install
- Open the Cypress console by running command:
npm run cy:open
- Run the test on Chrome browser in headed mode using command:
npm run test:headed
- Run the test on Chrome browser in headedless mode using command:
npm run test:headless
- Generates mochawesome HTML reports at project directory:
/mochawesome-report/mochawesome.html
- On every code push/change to master branch it runs the entire build on CircleCI and Cypress Dashboard as post deployment check.
- We can also run this project on Docker using command:
sh docker-cy-run.sh