diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-11-05 23:45:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-05 23:45:30 -0500 |
commit | 2d2aa0ee4b1466e79b1c9b5c8c8fddb8f54ada3d (patch) | |
tree | ff65275cd7eacf259e7a44a388e5849619f2c12f /actionpack/lib | |
parent | ffc1ed9bd54f3cf746f7ddf798e000fc025edef6 (diff) | |
parent | 8847e608b9a0f7a3f8d65832e1815b4ab1f021f3 (diff) | |
download | rails-2d2aa0ee4b1466e79b1c9b5c8c8fddb8f54ada3d.tar.gz rails-2d2aa0ee4b1466e79b1c9b5c8c8fddb8f54ada3d.tar.bz2 rails-2d2aa0ee4b1466e79b1c9b5c8c8fddb8f54ada3d.zip |
Merge pull request #31062 from y-yagi/follow_up_of_31046
Explicitly pass window handle to `resize_window_to`
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/system_testing/driver.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/system_testing/driver.rb b/actionpack/lib/action_dispatch/system_testing/driver.rb index 7577d3e68a..2687772b4b 100644 --- a/actionpack/lib/action_dispatch/system_testing/driver.rb +++ b/actionpack/lib/action_dispatch/system_testing/driver.rb @@ -59,7 +59,7 @@ module ActionDispatch def register_webkit(app) Capybara::Webkit::Driver.new(app, Capybara::Webkit::Configuration.to_hash.merge(@options)).tap do |driver| - driver.resize_window_to(*@screen_size) + driver.resize_window_to(driver.current_window_handle, *@screen_size) end end |