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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i wdio-chai-plugin

Weekly Downloads

2

Version

0.0.2

License

none

Last publish

Collaborators

  • monolithed