Skip to content

Commit 1d9bfa6

Browse files
pftgclaude
andcommitted
feat: default blur_active_element and hide_caret to true
Every real-world app enables these to prevent flaky screenshots from blinking cursors and focused input elements. Making them default saves boilerplate and matches universal usage pattern. Users can still set false to opt out. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c078dec commit 1d9bfa6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/capybara_screenshot_diff.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ module Capybara
2727
module Screenshot
2828
mattr_accessor :add_driver_path
2929
mattr_accessor :add_os_path
30-
mattr_accessor :blur_active_element
30+
mattr_accessor(:blur_active_element) { true }
3131
mattr_accessor :enabled
32-
mattr_accessor :hide_caret
32+
mattr_accessor(:hide_caret) { true }
3333
mattr_reader(:root) { (defined?(Rails) && defined?(Rails.root) && Rails.root) || Pathname(".").expand_path }
3434
mattr_accessor :stability_time_limit
3535
mattr_accessor :window_size

0 commit comments

Comments
 (0)