Commit 1d85dbc9 authored by Mike Greiling's avatar Mike Greiling

reset browser window size between tests

parent c2f8eeb4
......@@ -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();")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment