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.
This commit is contained in:
parent
aa9d896069
commit
d3ffac279a
1 changed files with 6 additions and 0 deletions
6
spec/support/capybara/release_and_clear_actions.rb
Normal file
6
spec/support/capybara/release_and_clear_actions.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue