Last active
August 30, 2016 15:47
-
-
Save mcgaffin/6892d635a4ad3cee61d0fc36f7895761 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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