/JS-TESTS

All what you need to start testing in JavaScript.

Primary LanguageJavaScript

JS-TESTS

All what you need to start E2E testing in JavaScript.

Installation

  • install Node.js and npm
  • download this repo and go with commands:
  • run npm install in command line
  • run npm install -g allure-commandline in command line

Running tests

  • run npm test in command line to execute all tests
  • run npm test -- --spec .\specs\home.spec.js in command line to execute index.html tests
  • run npm test -- --spec .\specs\loginAndRegister.spec.js in command line to execute Login and Register modals tests and properly register a new client
  • run npm run report to see general tests report in browser
  • to remove old tests from general report delete reports directory

Sources about webdriverIO

Sources about Chai assertion library

Sources about Mocha test framework

Additional info

  1. Install webdriverio globally
  2. Install mocha globally
  3. Use ./specs folder as a directory where you'll save your tests