Commit 9d9affdc authored by Mike Greiling's avatar Mike Greiling

move resize option the pre-test hooks instead of post-test

parent 3839dd0d
......@@ -45,12 +45,12 @@ RSpec.configure do |config|
host: Capybara.current_session.server.host,
port: Capybara.current_session.server.port,
protocol: 'http')
end
config.after(:example, :js) do |example|
# reset window size between tests
Capybara.current_session.current_window.resize_to(1240, 1400);
Capybara.current_session.current_window.resize_to(1240, 1400)
end
config.after(:example, :js) do |example|
# 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