{"action":"created","issue":{"url":"https://api.github.com/repos/Growstuff/growstuff/issues/924","repository_url":"https://api.github.com/repos/Growstuff/growstuff","labels_url":"https://api.github.com/repos/Growstuff/growstuff/issues/924/labels{/name}","comments_url":"https://api.github.com/repos/Growstuff/growstuff/issues/924/comments","events_url":"https://api.github.com/repos/Growstuff/growstuff/issues/924/events","html_url":"https://github.com/Growstuff/growstuff/pull/924","id":157118608,"number":924,"title":"Add capybara-screenshot to assist with feature testing","user":{"login":"maco","id":401264,"avatar_url":"https://avatars.githubusercontent.com/u/401264?v=3","gravatar_id":"","url":"https://api.github.com/users/maco","html_url":"https://github.com/maco","followers_url":"https://api.github.com/users/maco/followers","following_url":"https://api.github.com/users/maco/following{/other_user}","gists_url":"https://api.github.com/users/maco/gists{/gist_id}","starred_url":"https://api.github.com/users/maco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maco/subscriptions","organizations_url":"https://api.github.com/users/maco/orgs","repos_url":"https://api.github.com/users/maco/repos","events_url":"https://api.github.com/users/maco/events{/privacy}","received_events_url":"https://api.github.com/users/maco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-27T02:40:12Z","updated_at":"2016-05-27T04:29:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Growstuff/growstuff/pulls/924","html_url":"https://github.com/Growstuff/growstuff/pull/924","diff_url":"https://github.com/Growstuff/growstuff/pull/924.diff","patch_url":"https://github.com/Growstuff/growstuff/pull/924.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/Growstuff/growstuff/issues/comments/222057750","html_url":"https://github.com/Growstuff/growstuff/pull/924#issuecomment-222057750","issue_url":"https://api.github.com/repos/Growstuff/growstuff/issues/924","id":222057750,"user":{"login":"CloCkWeRX","id":365751,"avatar_url":"https://avatars.githubusercontent.com/u/365751?v=3","gravatar_id":"","url":"https://api.github.com/users/CloCkWeRX","html_url":"https://github.com/CloCkWeRX","followers_url":"https://api.github.com/users/CloCkWeRX/followers","following_url":"https://api.github.com/users/CloCkWeRX/following{/other_user}","gists_url":"https://api.github.com/users/CloCkWeRX/gists{/gist_id}","starred_url":"https://api.github.com/users/CloCkWeRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloCkWeRX/subscriptions","organizations_url":"https://api.github.com/users/CloCkWeRX/orgs","repos_url":"https://api.github.com/users/CloCkWeRX/repos","events_url":"https://api.github.com/users/CloCkWeRX/events{/privacy}","received_events_url":"https://api.github.com/users/CloCkWeRX/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T04:29:54Z","updated_at":"2016-05-27T04:29:54Z","body":"What we do for work is along the lines of:\r\n```\r\n  case ENV['headless']\r\n  when 'false'\r\n    Capybara.default_driver = Capybara.javascript_driver = :selenium\r\n  else\r\n    require 'headless'\r\n    headless = Headless.new(:display => 99, :reuse => false, :dimensions => '1280x1024x16')\r\n    headless.start\r\n    Capybara.default_driver = Capybara.javascript_driver = :selenium\r\n    Capybara.automatic_reload = true \r\n    \r\n  end\r\n```\r\n\r\nallowing you to run in selenium on your desktop (thus driving the browser around infront of you), or defaulting to selenium in xvfb. I find it really handy, as you can stick a binding.pry in and interact with the browser in the middle of a test to debug the state of things - quite good for complex ember like apps.\r\n\r\nThe headless version is what we use with jenkins and it dumps out the screenshots as mentioned above - we simply treat them as build artifacts; lets them be clickable.\r\n\r\nWhat we have now probably covers the second scenario already, but for interactive debugging its hard to beat selenium + pry "}}
{"actor":{"display_login":"CloCkWeRX"}}