BigW Consortium Gitlab

capybara_helpers.rb 188 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
module CapybaraHelpers
  def confirm_modal_if_present
    if Capybara.current_driver == Capybara.javascript_driver
      accept_confirm { yield }
      return
    end

    yield
  end
end