curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
source ~/.bashrc
nvm install 10.24.0
nvm use 10.24.0
nvm run node -v // v10.24.0- Install the project dependecies
npm install- Run the tests
npm run test:chromenpm run test:chrome # run the tests by using chrome browser (if installed)
npm run test:chrome:5 # run the tests by using 5 chrome instances (in parallel)
npm run test:chrome:headless # run the tests by using chrome browser in headless mode
npm run test:chrome:headless:5 # run the tests by using 5 chrome instances in headless mode (in parallel)
npm run test:chrome:mobile # run the tests by using chrome browser in a mobile view
npm run test:safari # run the tests by using safari browser (if installed)
npm run test:firefox # run the tests by using firefox browser (if installed)
npm run test:multiple # run the tests by using multiple browsers at the same time (chrome, firefox and safari)Suggested examples:
- npm run test:chrome
- npm run test:chrome:5
- npm run test:chrome:headless
- npm run test:multiple
# Notes:
# * This project automatically takes screenshots when failures
#
# * Reporting with Lists was implemented to "test:chrome:5" and "test:chrome:headless:5" as PoC only
# it can be extended to remaining execution commands
#
# * Looks like testcafe doesn't support chaining methods yet
# reference: https://testcafe-discuss.devexpress.com/t/how-to-chain-pagemodel-methods/313
# https://github.com/DevExpress/testcafe/issues/1535
#
# * Support for xpath selectors might be satisfied by following this approach:
# https://github.com/DevExpress/testcafe-examples/tree/master/examples/use-xpath-selectors