Chai-Mugshot
Chai plugin for the Mugshot Visual regression testing lib.
Install
npm install --save-dev chai-mugshot
Usage
var chai = ;var expect = expect;var chaiMugshot = ;var Mugshot = ;var WebdriverIOAdapter = MugshotadaptersWebdriverIO;var webdriverio = ; ;
API
For the plugin to function, you must pass a Mugshot
instance as in the example provided above.
Properties
The assertion properties return a promise
that tells Mocha or other test runners
, that the test is async
.
- identical - asserts that the
baseline
on disk of thecapturItem
is identical to the currentscreenshot