Skip to content

Instantly share code, notes, and snippets.

@mcgaffin
Last active August 30, 2016 15:47
Show Gist options
  • Save mcgaffin/6892d635a4ad3cee61d0fc36f7895761 to your computer and use it in GitHub Desktop.
Save mcgaffin/6892d635a4ad3cee61d0fc36f7895761 to your computer and use it in GitHub Desktop.
require "spec_helper"
describe "editors' recommendations", js: true do
context "visit the editor's recommendations page" do
it "visits the page and takes a screenshot" do
visit "/editors"
page.save_screenshot("editors.png", full: true)
end
end
end
# apply this diff
Capybara.register_driver :poltergeist do |app|
- Capybara::Poltergeist::Driver.new(app, js_errors: true, phantomjs_options: ['--load-images=no'], timeout: 120, window_size: [1024, 2000])
+ Capybara::Poltergeist::Driver.new(app, js_errors: true, phantomjs_options: [], timeout: 120, window_size: [1200, 2000])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment