CSS Regression tests in Codeception
$ composer require --dev mendicm/css-regression:dev-master
modules:
enabled:
- WebDriver:
...
- \mendicm\CodeceptionCssRegression\Module\CssRegression:
referenceImageDirectory: 'referenceImages'
failImageDirectory: 'failImages'
maxDifference: 0.1
automaticCleanup: true
module: WebDriver
fullScreenshots: false
$I->amOnPage('/');
$I->hideElements('.socialMediaButton');
$I->seeNoDifferenceToReferenceImage('NewsArticle', '#news-article');