This project is intended to show how to include your e2e test developed using webdriver.io framework, into angular workspace, so you can integrate these test into angular lifecycle, replacing protractor test.
For enabling this, it includes a custom angular builder: @migalons/angular-wdio-builder
This project was generated with Angular CLI version 9.0.5.
-
Install dependencies with
npm i
.Note: Personally, sometimes I had some difficulties trying to install chromedriver npm dependency, because of the binary download. But this is easy to fix following instructions.
-
Run
npm run e2e
ornpx ng e2e
to execute the end-to-end tests via wdio. -
For trying different options with builder parameters, just try to run with
npm run e2e:custom-config-file
ornpm run e2e:custom-options
-
Also it's possible to try different ng comand line options, for example:
npx ng e2e
npx ng e2e -c custom-config-file
PORT=1234 npx ng e2e --port 1234