Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

feat: add option "buildDiffOpts" to configure building diff image #955

Merged
merged 4 commits into from
Jan 29, 2019
Merged
Changes from 1 commit
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
Next Next commit
docs: fix info about "compareOpts"
  • Loading branch information
DudaGod committed Jan 29, 2019
commit 520aa5da99b07cc77e7f5177fc921a4648aa0d81
14 changes: 10 additions & 4 deletions doc/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ calibrate: false
tolerance: 3.5
antialiasingTolerance: 0,
compareOpts:
stopOnFirstFail: true
stopOnFirstFail: false
buildDiffOpts:
ignoreAntialiasing: true
ignoreCaret: true
httpTimeout: 5000
sessionRequestTimeout: 60000
sessionQuitTimeout: 5000
Expand Down Expand Up @@ -215,9 +218,12 @@ Settings list:

* `antialiasingTolerance` — read about this option in [looks-same](https://github.com/gemini-testing/looks-same#comparing-images-with-ignoring-antialiasing).

* `compareOpts` — extra options for images comparing. It's an Object with following fields:
* `[stopOnFirstFail] {Boolean}` Only first pixel will be found if this option is true
See [looks-same](https://github.com/gemini-testing/looks-same#comparing-images) documentation for the list of options.
* `compareOpts` — extra options for comparing images. See [looks-same](https://github.com/gemini-testing/looks-same#comparing-images) documentation for the list of available options. Default values are:
```javascript
compareOpts: {
stopOnFirstFail: false
}
```

* `windowSize` — specify browser window dimensions (i.e. `1600x1200`). If not
specified, the size of the window depends on WebDriver. :warning: You can't set specific resolutions for browser Opera or mobile platforms. They use only full-screen resolution.
Expand Down