lib/capybara/screenshot/diff/stabilization.rb in capybara-screenshot-diff-0.14.2 vs lib/capybara/screenshot/diff/stabilization.rb in capybara-screenshot-diff-0.15.0

- old
+ new

@@ -17,11 +17,11 @@ return false; }() JS def take_stable_screenshot(comparison, color_distance_limit:, shift_distance_limit:, - area_size_limit:) + area_size_limit:, skip_area:) blurred_input = prepare_page_for_screenshot previous_file_name = comparison.old_file_name screenshot_started_at = last_image_change_at = Time.now loop.with_index do |_x, i| take_right_size_screenshot(comparison) @@ -36,10 +36,10 @@ if previous_file_name stabilization_comparison = ImageCompare.new(comparison.new_file_name, previous_file_name, color_distance_limit: color_distance_limit, shift_distance_limit: shift_distance_limit, - area_size_limit: area_size_limit) + area_size_limit: area_size_limit, skip_area: skip_area) if stabilization_comparison.quick_equal? if (Time.now - last_image_change_at) > Capybara::Screenshot.stability_time_limit clean_stabilization_images(comparison.new_file_name) break end