Puppeteer Screenshot Tester Versions Save

Small library that allows us to compare screenshots generated by puppeteer in our tests.

v1.6.0

1 year ago

Minor Changes

  • Fixing #48 (incorrect .png compression)
  • Adding overrides attribute to outputSettings that allows to set sharp's options

v1.5.0

2 years ago

Minor Changes

  • Ability to handle multiple file formats (all supported by puppeteer) fixes #47
  • Option to set output compression and force different format than puppeteers' (outputSettings)

Dev environment changes

  • Bump puppeteer to 11.0.0
  • Bump nodejs-resemble to 0.4.1

1.4.0

3 years ago
  • Upgrade puppeteer to v8.0
  • Dependencies audit
  • Example test changed to w3s history page

1.3.1

3 years ago

Fix dependency issue with node-resemble.js

1.3.0

3 years ago

Change dependency on node-resemble.js (no longer maintained) to my own fork

Implement include rectangles (see README.md)

Closes #33

1.2.0

3 years ago

Upgrade to puppeteer 5.x More on ignoring rectangles

1.1.1

4 years ago

@JacobJust Added config to overwrite image, useful if target images are commit ... @JacobJust commit target image

1.1.0

5 years ago

New screenshotOptions option: saveNewImageOnError: <[boolean]> saves the undiffed new image on error as ${saveFolder}/${name}-diff${ext}

1.0.1

6 years ago

##Changes -Default threshold set to 0 -Add option to setup how to display errors:

constructor([{...} [, errorSettings = Object] ]]])

  • errorSettings <[Object]> change how to display errors (errorType: flat | movement | flatDifferenceIntensity | movementDifferenceIntensity | diffOnly):
{
  errorColor: {
    red: 255,
    green: 0,
    blue: 255
  },
  errorType: 'flat',
  transparency: 0.7
}

1.0.0

6 years ago

###Major changes

Change in comparison library, replace pixelmatch with node-resemble.js

Default threshold changed from 0.1 to 0.02 which means that right now images with more than 2% difference are treated as different

Add options in constructor

  • ignoreColors <[boolean]> should ignore colors?
  • ignoreRectangles <[Array<Array[x, y, width, height]>]> should ignore rectangles? example: [[325,170,100,40], [10,10,200,200]]