summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/support/capybara.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb
index 71c86fac3f4..b5bf2c9340b 100644
--- a/spec/support/capybara.rb
+++ b/spec/support/capybara.rb
@@ -48,6 +48,9 @@ RSpec.configure do |config|
end
config.after(:example, :js) do |example|
+ # reset window size between tests
+ Capybara.current_session.current_window.resize_to(1240, 1400);
+
# prevent localstorage from introducing side effects based on test order
execute_script("localStorage.clear();")