Getting Error: net::ERR_CONNECTION_REFUSED for BackstopJS

259 views Asked by At

I'm getting a Error: net::ERR_CONNECTION_REFUSED message when trying to run BackstopJS. A localhost.crt and localhost.key file were created and I'm wondering if they need to be referenced in the backstop.json file? Or am I completely wrong? I'm on a mac, trying to run Backstop through Terminal.

Here is my backstop.json file:

  "id": "backstop_default",
  "viewports": [
    {
      "label": "phone",
      "width": 320,
      "height": 480
    },
    {
      "label": "tablet",
      "width": 1024,
      "height": 768
    },
    {
      "label": "tablet-vertical",
      "width": 768,
      "height": 1024
   },
   {
     "label": "computer",
     "width": 1920,
     "height": 768
    }
  ],
  "onBeforeScript": "puppet/onBefore.js",
  "onReadyScript": "puppet/onReady.js",
  "scenarios": [
    {
      "label": "Regression Testing",
      "cookiePath": "backstop_data/engine_scripts/cookies.json",
      "url": "https://localhost:3000/",
      "referenceUrl": "https://localhost:3000/",
      "readyEvent": "backstopjs_ready",
      "readySelector": "",
      "delay": 1000,
      "hideSelectors": [],
      "removeSelectors": [],
      "hoverSelector": "",
      "clickSelector": "",
      "postInteractionWait": 0,
      "selectors": [],
      "selectorExpansion": true,
      "expect": 0,
      "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": "puppeteer",
  "engineOptions": {
    "ignoreHTTPSErrors": true,
    "args": ["--no-sandbox", "--disable-setuid-sandbox"]
  },
  "asyncCaptureLimit": 5,
  "asyncCompareLimit": 50,
  "debug": false,
  "debugWindow": false
}
0

There are 0 answers