Skip to content

Commit

Permalink
Set a bigger window for save_and_open_screenshot
Browse files Browse the repository at this point in the history
1680x1050 is the size of a 15" retina Macbook Pro.

Without this setting, `save_and_open_screenshot` captures perhaps 75% of
the screen, which makes it much less useful for debugging.

I'm sure some people have bigger screens, and could use an even larger
window size, but this feels like a good default.
  • Loading branch information
gabebw committed Jun 27, 2019
1 parent 75158c8 commit 598aa91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/chromedriver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Capybara.register_driver :headless_chrome do |app|
options = ::Selenium::WebDriver::Chrome::Options.new
options.headless!
options.add_argument "--window-size=1680,1050"

Capybara::Selenium::Driver.new app,
browser: :chrome,
Expand Down

0 comments on commit 598aa91

Please sign in to comment.