Skip to content

zkual0/wl-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wl-code

Steps to make the project work

Make sure you have the right node version already installed in your host

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:chrome

Support for different browsers execution

npm 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published