Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include troubleshooting section about rounding errors #984

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,15 @@ Sometimes bad permissions happen to good people. It's ok, this is a safe space.

Be sure to use a config `id` in your config file. See https://github.com/garris/BackstopJS/issues/291

### There's no visible difference between "Reference" and "Test" screenshots

You might run into an issue where your reference and test screenshots look seemingly identical but on further inspection have a 1px difference in height or width. To fix this:
1. Open your browser
2. Make sure your viewport is the same as the one you have setup in your configuration
3. Check whether the element you target has a height or width that is not a natural number, i.e. 804.25px. If so, you might have run into a rounding error.
4. Adjust your browser's viewport so the element's width is a natural number will help with this
5. Change the viewport in your configuration

#### If you just upgraded to 2.x or 3.x

Filename formats have changed. To use the 1.x (compatible) file format, use the `fileNameTemplate` property like so...
Expand Down