module CapybaraHelper
  def page!
    save_and_open_page
  end

  def screenshot!
    save_and_open_screenshot
  end
end

RSpec.configure do |config|
  config.include CapybaraHelper, type: :feature
end

Move capybara helpers in a separate template file
Move capybara helpers in a separate template file
