From d3ffac279a95f6947211e0bbc2e886358284924f Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Mon, 7 Dec 2020 14:54:44 +0100 Subject: [PATCH] Maintenance: Fixes issue with Firefox Capybara tests where (mouse) actions are not released and cleared properly and leak into following tests causing them to fail. --- spec/support/capybara/release_and_clear_actions.rb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 spec/support/capybara/release_and_clear_actions.rb 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