The project contains examples to create page objects and tests using webdriverio 5.x and ES6. The test runner is the @wdio/mocha-framework.
npm run test
The project also contains units tests with mocha and chai for src/index.js, present at test/unit.
npm run test:unit
This project was created to serve as a reference to others interested in ES6 webdriver.io tests.
- Node.js - The latest LTS release
- Java -- Needed to run the selenium server
- Chrome.
- Ubuntu 18.04
- Clone the latest version of this repo.
npm install
npm run test
npm run test:unit
npm run test:register
npm run test:search
npm run test:search.api
To execute a standalone spec run ./node_modules/.bin/wdio --spec <path to test> ./wdio.conf.js
Example:
./node_modules/.bin/wdio --spec ./test/specs/register.js ./wdio.conf.js