garris / garris/BackstopJS

Issues generating screenshots of pages

Open
#1,096 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

Hi, I've been working with BackstopJS on an off for a few months now on a project for a client.

Recently however, I have noticed a few inconsistencies appearing around how the package (and possibly puppeteer) is capturing the screenshots.

Unfortunately I cannot share screenshots due to NDA restrictions but the issues I have been seeing are as follows:

1. BackstopJS is not always capturing the page in its entirety, in some cases it will only capture part of the page. However as I said before this is inconsistent behaviour and often where you might have a reference image of a full page it BackstopJS will compare a partial screen capture and mark this as the same. The same goes for when BackstopJS has only captured part of a page for the reference but a full page for the test image.

2. Sometimes BackstopJS will capture reference image perfectly fine but not capture the test time and then when it compares the two it will mark the lack of test image as being the same as the reference image when in actual fact it isn't (one has content, the other doesn't). Again this seems to happen when there is no screenshot for the reference image too.

In both of these cases the mismatchThreshold is only set to 4%

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.