Browse Source

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.

Thorsten Eckel 4 years ago
parent
commit
d3ffac279a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      spec/support/capybara/release_and_clear_actions.rb

+ 6 - 0
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