Naivete Precedes Misrepresentation

npm

Need private packages and team management tools?Check out npm Orgs. »

wdio-chai-plugin

0.0.2 • Public • Published

wdio-chai-plugin

A WebdriverIO plugin. Adapter for Chai assertion library

Installation

The easiest way is to keep wdio-chai-plugin as a dependency in your package.json.

{
    "dependencies": {
        "wdio-chai-plugin": "^0.0.1"
    }
}

You can simple do it by:

npm install wdio-chai-plugin --save-dev

Configuration

Following code shows the default wdio test runner configuration...

// wdio.conf.js 
 
let chai = require('wdio-chai-plugin');
 
/** @namespace browser */
module.exports = {
    // ... 
 
    before: function (capabilities, specs) {
        chai(browser);
    },
 
    // ... 
};

Usage

describe('Default page', function () {
    it('Test case', function () {
        var url = browser.getUrl();
 
        url.should.be.equal('https://example.com');
    });
});

====

For more information on WebdriverIO see the homepage.

install

npm i wdio-chai-plugin

Downloadsweekly downloads

4,132

version

0.0.2

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability