diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-11-01 12:17:13 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-11-01 12:17:13 -0500 |
commit | 9d9affdca32c5d70a95bcc8312d07787bd9dc580 (patch) | |
tree | e7d793220bd08245b3c2e2f11fc883d4b6f3d542 /spec/support/capybara.rb | |
parent | 3839dd0dbad9cdb0063f22302ddc50c84ab8d9f2 (diff) | |
download | gitlab-ce-9d9affdca32c5d70a95bcc8312d07787bd9dc580.tar.gz |
move resize option the pre-test hooks instead of post-test
Diffstat (limited to 'spec/support/capybara.rb')
-rw-r--r-- | spec/support/capybara.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb index b5bf2c9340b..e196455206e 100644 --- a/spec/support/capybara.rb +++ b/spec/support/capybara.rb @@ -45,12 +45,12 @@ RSpec.configure do |config| host: Capybara.current_session.server.host, port: Capybara.current_session.server.port, protocol: 'http') - end - config.after(:example, :js) do |example| # reset window size between tests - Capybara.current_session.current_window.resize_to(1240, 1400); + Capybara.current_session.current_window.resize_to(1240, 1400) + end + config.after(:example, :js) do |example| # prevent localstorage from introducing side effects based on test order execute_script("localStorage.clear();") |