Simple E2E tests of get a quick quote
Protractor is an open source end to end testing testing framework.It allows you to create tests that interact with the brower like a real user would, one of the feature of the framework is the ability to wait for page load, limiting the amount of waits and sleep I used in the test suite, plus It incredily flexible I integrated cucumber into it.
- Install NodeJS
- Clone repo
- cd in to folder
- npm install
- protractor protractor.conf.js and press enter
- check report folder for HTML Reports
- npm protractor-cucumber-framework
- npm install chai
- npm install cucumber
- npm install mocha
- Use more await command than sleep command
- click get quote button is been intercepted need to use unique element
- expand the page to a certain size
- Write clean code less duplications
- Create Page Object Model