CSS Regression tests in Codeception
PHP HTML
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 8 commits ahead of sascha-egerer:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
LICENSE
README.md
composer.json

README.md

css-regression

CSS Regression tests in Codeception

Install

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

Configure

modules:
    enabled:
        - WebDriver:
            ...
        - \mendicm\CodeceptionCssRegression\Module\CssRegression:
            referenceImageDirectory: 'referenceImages'
            failImageDirectory: 'failImages'
            maxDifference: 0.1
            automaticCleanup: true
            module: WebDriver
            fullScreenshots: false

Usage

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