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
1 changed files with 3 additions and 0 deletions

View File

@ -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();")