mendicm/css-regression

CSS Regression Module for Codeception

dev-master 2019-06-27 08:45 UTC

This package is auto-updated.

Last update: 2024-10-27 20:20:49 UTC


README

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');