{"action":"created","issue":{"url":"https://api.github.com/repos/garris/BackstopJS/issues/547","repository_url":"https://api.github.com/repos/garris/BackstopJS","labels_url":"https://api.github.com/repos/garris/BackstopJS/issues/547/labels{/name}","comments_url":"https://api.github.com/repos/garris/BackstopJS/issues/547/comments","events_url":"https://api.github.com/repos/garris/BackstopJS/issues/547/events","html_url":"https://github.com/garris/BackstopJS/issues/547","id":257790722,"number":547,"title":"Error running backstop test with docker container","user":{"login":"dodozhang21","id":646064,"avatar_url":"https://avatars2.githubusercontent.com/u/646064?v=4","gravatar_id":"","url":"https://api.github.com/users/dodozhang21","html_url":"https://github.com/dodozhang21","followers_url":"https://api.github.com/users/dodozhang21/followers","following_url":"https://api.github.com/users/dodozhang21/following{/other_user}","gists_url":"https://api.github.com/users/dodozhang21/gists{/gist_id}","starred_url":"https://api.github.com/users/dodozhang21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dodozhang21/subscriptions","organizations_url":"https://api.github.com/users/dodozhang21/orgs","repos_url":"https://api.github.com/users/dodozhang21/repos","events_url":"https://api.github.com/users/dodozhang21/events{/privacy}","received_events_url":"https://api.github.com/users/dodozhang21/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-14T17:03:06Z","updated_at":"2017-09-15T05:16:15Z","closed_at":null,"author_association":"NONE","body":"Here's my configuration file \r\n\r\n```\r\n{\r\n  \"id\": \"test\",\r\n  \"viewports\": [\r\n    {\r\n      \"label\": \"small\",\r\n      \"width\": 320,\r\n      \"height\": 480\r\n    },\r\n    {\r\n      \"label\": \"medium\",\r\n      \"width\": 568,\r\n      \"height\": 1024\r\n    },\r\n    {\r\n      \"label\": \"large\",\r\n      \"width\": 1024,\r\n      \"height\": 768\r\n    },\r\n    {\r\n      \"label\": \"xlarge\",\r\n      \"width\": 1291,\r\n      \"height\": 768\r\n    }\r\n  ],\r\n  \"scenarios\": [\r\n    {\r\n      \"label\": \"Family Circle Story\",\r\n      \"url\": \"http://www.familycircle.com/family-fun/10-books-to-read-now/\",\r\n      \"hideSelectors\": [\r\n        \"#ad\",\r\n        \"#mobileHoverBannerWrapper\", \r\n        \"#header-banner-container\",\r\n        \"#sidebar-second\"\r\n      ], \r\n      \"removeSelectors\": [\r\n        \"#block-outbrain-integration-outbrain\",\r\n        \"#monetate_lightbox\",\r\n        \"#block-medianet-medianet\"\r\n      ],\r\n      \"selectorExpansion\": true,\r\n      \"selectors\": [],\r\n      \"readyEvent\": null,\r\n      \"delay\": 1000,\r\n      \"misMatchThreshold\" : 10,\r\n      \"requireSameDimensions\" : true\r\n    }\r\n  ],\r\n  \"paths\": {\r\n    \"bitmaps_reference\": \"backstop_data/bitmaps_reference\",\r\n    \"bitmaps_test\": \"backstop_data/bitmaps_test\",\r\n    \"engine_scripts\": \"backstop_data/engine_scripts\",\r\n    \"html_report\": \"backstop_data/html_report\",\r\n    \"ci_report\": \"backstop_data/ci_report\"\r\n  },\r\n  \"engineFlags\": [],\r\n  \"engine\": \"chrome\",\r\n  \"report\": [\"browser\"],\r\n  \"debug\": true,\r\n  \"debugWindow\": false\r\n}\r\n```\r\n\r\nand after trying to run this using the container via `docker run --rm -v $(pwd):/src docksal/backstopjs test`, I get the following error\r\n```\r\nCasperJS: [info] [phantom] Step anonymous 8/28: done in 5491ms.\r\nCasperJS:  [info] [phantom] Step anonymous 9/28 http://www.familycircle.com/family-fun/10-books-to-read-now/ (HTTP 200)\r\nCasperJS:  [info] [phantom] Step anonymous 9/28: done in 5508ms.\r\nCasperJS:  [info] [phantom] Step anonymous 10/28 http://www.familycircle.com/family-fun/10-books-to-read-now/ (HTTP 200)\r\nCasperJS:  [debug] [phantom] Navigation requested: url=about:blank, type=Other, willNavigate=true, isMainFrame=true\r\nCasperJS:  [debug] [phantom] url changed to \"about:blank\"\r\n\r\nTesting script failed with code: 1\r\n\r\nAn unexpected error occured. You may want to try setting the debug option to `true` in your config file.\r\nCOMMAND | Command `test` ended with an error\r\nCOMMAND | Error: An unexpected error occured. You may want to try setting the debug option to `true` in your config file.\r\n              at ChildProcess.<anonymous> (/usr/lib/node_modules/backstopjs/core/util/createBitmaps.js:70:18)\r\n              at emitTwo (events.js:106:13)\r\n              at ChildProcess.emit (events.js:191:7)\r\n              at maybeClose (internal/child_process.js:877:16)\r\n              at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)\r\n```\r\nWhen run the tests on my local machine (mac OS) it runs fine. Also I don't understand why inside the container it uses casperjs instead of chrome.\r\n\r\nIf you have any pointers, it will be appreciated.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/garris/BackstopJS/issues/comments/329683687","html_url":"https://github.com/garris/BackstopJS/issues/547#issuecomment-329683687","issue_url":"https://api.github.com/repos/garris/BackstopJS/issues/547","id":329683687,"user":{"login":"garris","id":447033,"avatar_url":"https://avatars2.githubusercontent.com/u/447033?v=4","gravatar_id":"","url":"https://api.github.com/users/garris","html_url":"https://github.com/garris","followers_url":"https://api.github.com/users/garris/followers","following_url":"https://api.github.com/users/garris/following{/other_user}","gists_url":"https://api.github.com/users/garris/gists{/gist_id}","starred_url":"https://api.github.com/users/garris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garris/subscriptions","organizations_url":"https://api.github.com/users/garris/orgs","repos_url":"https://api.github.com/users/garris/repos","events_url":"https://api.github.com/users/garris/events{/privacy}","received_events_url":"https://api.github.com/users/garris/received_events","type":"User","site_admin":false},"created_at":"2017-09-15T05:16:15Z","updated_at":"2017-09-15T05:16:15Z","author_association":"OWNER","body":"Ah ha -- That docker image is totally bootleg! 😄\r\n\r\nYou may want to request the maintainer update his container.   It's probably running an old version.   "}}
{"actor":{"display_login":"garris"}}