summaryrefslogtreecommitdiff
path: root/spec/support/capybara.rb
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-11-01 12:17:13 -0500
committerMike Greiling <mike@pixelcog.com>2017-11-01 12:17:13 -0500
commit9d9affdca32c5d70a95bcc8312d07787bd9dc580 (patch)
treee7d793220bd08245b3c2e2f11fc883d4b6f3d542 /spec/support/capybara.rb
parent3839dd0dbad9cdb0063f22302ddc50c84ab8d9f2 (diff)
downloadgitlab-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.rb6
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();")