Created
September 21, 2017 22:58
-
-
Save lmakarov/a54d330d3cefe8af8b82a91804a165c5 to your computer and use it in GitHub Desktop.
Sample BackstopJS config to compare two URLs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "backstop_default", | |
"viewports": [ | |
{ | |
"label": "tablet", | |
"width": 1024, | |
"height": 768 | |
}, | |
{ | |
"label": "dekstop", | |
"width": 1920, | |
"height": 1080 | |
} | |
], | |
"onBeforeScript": "chromy/onBefore.js", | |
"onReadyScript": "chromy/onReady.js", | |
"scenarios": [ | |
{ | |
"label": "Google Homepage", | |
"cookiePath": "backstop_data/engine_scripts/cookies.json", | |
"url": "https://www.google.com/?hl=ru", | |
"referenceUrl": "https://www.google.com/", | |
"readyEvent": "", | |
"readySelector": "", | |
"delay": 0, | |
"hideSelectors": [], | |
"removeSelectors": [], | |
"hoverSelector": "", | |
"clickSelector": "", | |
"postInteractionWait": "", | |
"selectors": [], | |
"selectorExpansion": true, | |
"misMatchThreshold" : 0.1, | |
"requireSameDimensions": true | |
} | |
], | |
"paths": { | |
"bitmaps_reference": "backstop_data/bitmaps_reference", | |
"bitmaps_test": "backstop_data/bitmaps_test", | |
"engine_scripts": "backstop_data/engine_scripts", | |
"html_report": "backstop_data/html_report", | |
"ci_report": "backstop_data/ci_report" | |
}, | |
"report": ["browser"], | |
"engine": "chrome", | |
"engineFlags": [], | |
"asyncCaptureLimit": 5, | |
"asyncCompareLimit": 50, | |
"debug": false, | |
"debugWindow": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment