Cypress is a next generation end to end testing tool built for the modern web.
Cypress is most often compared to Selenium; however Cypress is both fundamentally and architecturally different. Cypress is not constrained by the same restrictions as Selenium.
This enables you to write faster, easier and more reliable tests.
- One doesn’t need to add explicit or implicit wait commands in test scripts, unlike Selenium. Cypress waits automatically for commands and assertions.
- As the programmer writes commands, Cypress executes them in real-time, providing visual feedback as they run.
- The automatic scrolling operation ensures that an element is in view before performing any action
- Developers or QAs can use Spies, Stubs, and Clocks to verify and control the behavior of server responses, functions, or timers.
- Screeshots with videos
- No flaky, inconsistent tests anymore.....✨Magic ✨
Using mochawesome npm module for reporting
To Set the base folder for visual comparison:
npm run e2e-tests-base
npm install
To run entire suite on chrome browser
npm run e2e-tests
To run on otherbrowser create/change the script in package.json --browser-name
MIT Free Software, Hell Yeah!