debian-mirror-gitlab/debian/patches/tweaks/0070-remove-capybara-screenshot-rspec.patch
2021-11-19 19:06:04 +05:30

29 lines
977 B
Diff

--- a/spec/support/capybara.rb
+++ b/spec/support/capybara.rb
@@ -3,7 +3,6 @@
# rubocop:disable Style/GlobalVars
require 'capybara/rails'
require 'capybara/rspec'
-require 'capybara-screenshot/rspec'
require 'selenium-webdriver'
# Give CI some extra time
@@ -110,18 +109,6 @@
Capybara.default_normalize_ws = true
Capybara.enable_aria_label = true
-Capybara::Screenshot.append_timestamp = false
-
-Capybara::Screenshot.register_filename_prefix_formatter(:rspec) do |example|
- example.full_description.downcase.parameterize(separator: "_")[0..99]
-end
-# Keep only the screenshots generated from the last failing test suite
-Capybara::Screenshot.prune_strategy = :keep_last_run
-# From https://github.com/mattheworiordan/capybara-screenshot/issues/84#issuecomment-41219326
-Capybara::Screenshot.register_driver(:chrome) do |driver, path|
- driver.browser.save_screenshot(path)
-end
-
RSpec.configure do |config|
config.include CapybaraHelpers, type: :feature