0.2.2 • Published 5 years ago

jest-environment-wdio v0.2.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

jest-environment-wdio

version MIT License

Run WDIO Tests using Jest

NOTE Compatible with WDIO v5 ONLY!

Installation

NPM:

npm install jest-environment-wdio webdriverio --save-dev

Yarn:

yarn add jest-environment-wdio webdriverio --dev

Configuration

In the package.json update the jest configuration section

"jest": {
  "testEnvironment": "jest-environment-wdio",
  "testEnvironmentOptions": {
      "wdio": {
          "capabilities":{
              "browserName": "firefox"
          }
          // any wdio configuration options
      }
  }
}

testEnvironmentOptions Default Options. Does support all WDIO Configuraiton Options

{
    host: '127.0.0.1',
    port: 4444,
    protocol: 'http',
    waitForTimeout: '10000',
    connectionRetryTimeout: '90000',
    connectionRetryCount: 3,
    logLevel: 'debug',
    coloredLogs: true,
    capabilities: {
        browserName: 'chrome'
    }
}

API

global.browser

Access to the WDIO Browser Object

global.$

Alias for findElement

global.$$

Alias for findElements

From here the WDIO v5 API documentation takes over.

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago