Skip to content

tmjpedro/demo-webdriverio-mocha

 
 

Repository files navigation

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

Requirements

Getting Started

Install the dependencies:

yarn install

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 wdio.conf.js.
Then the tests run on your machine without a docker selenium.

Run e2e tests:

yarn tests:e2e

Run visual regression tests:

yarn tests:visualregression

Reports

alt text

Run this command to generate the allure report in the directory ./test-report/allure-report:

yarn report:generate

You can run this command to start a server on your machine and open the allure report on the browser:

yarn report:open

Also, you can see Timeline report in ./test-report/timeline

Eslint and Prettier

Run check lint:

yarn code:check

Run format lint:

yarn code:format

About

Demo Integration Tests with WebdriverIO and Mocha

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%