saschaegerer/css-regression

CSS Regression Module for Codeception

dev-master 2015-08-10 07:42 UTC

This package is auto-updated.

Last update: 2024-10-15 11:37:29 UTC


README

CSS Regression tests in Codeception

Install

$ composer require --dev saschaegerer/css-regression:dev-master

Configure

modules:
    enabled:
        - WebDriver:
            ...
        - \SaschaEgerer\CodeceptionCssRegression\Module\CssRegression:
            depends: 'WebDriver'
            referenceImageDirectory: 'referenceImages'
            failImageDirectory: 'failImages'
            maxDifference: 0.1
            automaticCleanup: true

Usage

$I->amOnPage('/');
$I->hideElements('.socialMediaButton');
$I->seeNoDifferenceToReferenceImage('NewsArticle', '#news-article');