diff --git a/spec/support/capybara/release_and_clear_actions.rb b/spec/support/capybara/release_and_clear_actions.rb new file mode 100644 index 000000000..65bef4138 --- /dev/null +++ b/spec/support/capybara/release_and_clear_actions.rb @@ -0,0 +1,6 @@ +RSpec.configure do |config| + config.after(:each, type: :system) do + page.driver.browser.action.release_actions + page.driver.browser.action.clear_all_actions + end +end