reset browser window size between tests

This commit is contained in:
Mike Greiling 2017-11-01 11:01:33 -05:00
parent c2f8eeb490
commit 1d85dbc979
No known key found for this signature in database
GPG key ID: 0303DF507FA67596

View file

@ -48,6 +48,9 @@ RSpec.configure do |config|
end end
config.after(:example, :js) do |example| 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 # prevent localstorage from introducing side effects based on test order
execute_script("localStorage.clear();") execute_script("localStorage.clear();")