Demo WebDriverIO with Mocha
Demo WebDriverIO is a demonstration project of integration tests. In this project the user sends a message to the customer service on Automation Practice.
These tests are developed in JS with WebDriverIO and Mocha
- node >= 10.15.x - how to install Node
- yarn >= 1.16.x - how to install Yarn
- Selenium Server: Here's how to set up a server: Zalenium or Selenium HQ
Install the dependencies:
Start a Selenium Server with Zalenium:
docker-compose up -d zalenium
In wdio.conf.js file configure the host of the Selenium Server
hostname (default: localhost).
If you don't want to start a Selenium Server, you can use Selenium Standalone from wdio (if you have JDK installed).
So, you should uncomment the line 60 on
Then the tests run on your machine without a docker selenium.
Run e2e tests:
Run visual regression tests:
Run this command to generate the allure report in the directory
You can run this command to start a server on your machine and open the allure report on the browser:
Also, you can see Timeline report in
Eslint and Prettier
Run check lint:
Run format lint:
Follow this article to contribute and create a good commit message.