debian-mirror-gitlab/debian/patches/tweaks/0070-remove-capybara-screenshot-rspec.patch
2023-03-05 14:24:42 +05:30

29 lines
1,001 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
@@ -120,18 +119,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..SCREENSHOT_FILENAME_LENGTH]
-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