capybara icon indicating copy to clipboard operation
capybara copied to clipboard

Fix kwargs in `assert_*_of_selectors` methods in minitest

Open Jealrock opened this issue 2 months ago • 0 comments

When calling assert_*_of_selectors on self in minitest the kwargs get pushed to args.

To reproduce replace assert_all_of_selectors(:css, 'select#form_other_title', 'input#form_last_name') with assert_all_of_selectors(:css, 'select#form_other_title', "input#form_super_secret", visible: false) in minitest_spec.rb.

The fix is to just use the right generator method in minitest.rb

Jealrock avatar Oct 06 '25 21:10 Jealrock