debian-mirror-gitlab/debian/patches/tweaks/0070-remove-capybara-screenshot-rspec.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
1,001 B
Diff
Raw Normal View History

--- 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
2023-07-09 09:48:07 +05:30
@@ -129,18 +128,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|
2021-12-11 22:56:32 +05:30
- 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