Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-11-01 19:01:33 +0300
committerMike Greiling <mike@pixelcog.com>2017-11-01 19:01:33 +0300
commit1d85dbc979e1e5f5c6e373a64e41bfb8d5caf6fd (patch)
treeca045a962120aa7a8a0ee8c9e9158cc360e186b9 /spec/support/capybara.rb
parentc2f8eeb490f8ba2c2f9db3eb4cd8960443c694aa (diff)
reset browser window size between tests
Diffstat (limited to 'spec/support/capybara.rb')
-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();")