gitlab-org--gitlab-foss/features/support/capybara_helpers.rb

10 lines
188 B
Ruby

module CapybaraHelpers
def confirm_modal_if_present
if Capybara.current_driver == Capybara.javascript_driver
accept_confirm { yield }
return
end
yield
end
end