lib/capybara/screenshot/diff/stabilization.rb in capybara-screenshot-diff-0.15.1 vs lib/capybara/screenshot/diff/stabilization.rb in capybara-screenshot-diff-1.0.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require_relative 'os' module Capybara module Screenshot module Diff @@ -56,10 +58,10 @@ previous_file_name = "#{comparison.new_file_name.chomp('.png')}_x#{format('%02i', i)}.png~" FileUtils.mv comparison.new_file_name, previous_file_name end ensure - blurred_input.click if blurred_input + blurred_input&.click end private def reduce_retina_image_size(file_name)