reset browser window size between tests
This commit is contained in:
parent
c2f8eeb490
commit
1d85dbc979
1 changed files with 3 additions and 0 deletions
|
@ -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();")
|
||||
|
||||
|
|
Loading…
Reference in a new issue