garris / garris/BackstopJS

Trying to build a custom config file that pareses the sitemap xml of the site for a list of paths

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

Description

im getting `TypeError: Cannot set properties of undefined (setting 'tempCompareConfigFileName')` when I set in the config file `module.exports = getPaths();` within that function im attempting to build the config properties `scenerios` being an array that gets paths push into through a for loop above before returning.

`return {
"id": "prod_test",
"viewports": [
{
"name": "small",
"width": 320,
"height": 480
},
{
"name": "medium",
"width": 760,
"height": 1024
},
{
"name": "xlarge",
"width": 1440,
"height": 900
}
],
"scenarios":
scenarios
,
"paths": {
"bitmaps_reference": "./backstop_data/bitmaps_reference",
"bitmaps_test": "./backstop_data/bitmaps_test",
"casper_scripts": "./backstop_data/casper_scripts",
"html_report": "./backstop_data/html_report",
"ci_report": "./backstop_data/ci_report"
},
"engine": "puppeteer",
"engineOptions": {
"args": ["--no-sandbox"]
},
"onBeforeScript": "puppet/onBefore.js",
"asyncCaptureLimit": 5,
"asyncCompareLimit": 50,
"debug": false,
"debugWindow": false
};`

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.