An example of browser based testing via:
- cucumber-js
- selenium-webdriver, running tests on Firefox via geckodriver
- Use of page objects
- Use of ES6 & ES7 syntax
Note that selenium-webdriver
encourages polling for browser state, and consequently heavily uses promises.
To simplify working with promises, selenium-webdriver
uses a library that affords working with them in a more imperative style.
See here for more information.
// Cleans and installs dependencies
npm run setup
// Runs the tests
npm test