spec/watirspec/elements/checkbox_spec.rb in watir-6.16.5 vs spec/watirspec/elements/checkbox_spec.rb in watir-6.17.0

- old
+ new

@@ -37,15 +37,19 @@ }.to_not have_deprecated_text_regexp expect { expect(browser.checkbox(label: /this will not match/)).to exist }.to_not have_deprecated_text_regexp + end - expect(browser.checkbox(label: /some visible some hidden/)).to_not exist + bug 'Safari is not filtering out hidden text', :safari do + it 'handles text_regexp deprecation in spite of hidden text' do + expect(browser.checkbox(label: /some visible some hidden/)).to_not exist - expect { - expect(browser.checkbox(label: /some visible$/)).to exist - }.to have_deprecated_text_regexp + expect { + expect(browser.checkbox(label: /some visible$/)).to exist + }.to have_deprecated_text_regexp + end end end it 'returns true if the checkbox button exists (search by name and value)' do expect(browser.checkbox(name: 'new_user_interests', value: 'cars')).to exist