spec/watirspec/elements/radio_spec.rb in watir-7.0.0.beta1 vs spec/watirspec/elements/radio_spec.rb in watir-7.0.0.beta2
- old
+ new
@@ -203,23 +203,20 @@
browser.radio(id: 'new_user_newsletter_no').set
browser.radio(id: 'new_user_newsletter_yes').set
expect(messages).to eq ['clicked: new_user_newsletter_no', 'clicked: new_user_newsletter_yes']
end
- # http://webbugtrack.blogspot.com/2007/11/bug-193-onchange-does-not-fire-properly.html
- not_compliant_on :internet_explorer do
- it 'fires the onchange event' do
- browser.radio(value: 'certainly').set
- expect(messages).to eq ['changed: new_user_newsletter']
+ it 'fires the onchange event' do
+ browser.radio(value: 'certainly').set
+ expect(messages).to eq ['changed: new_user_newsletter']
- browser.radio(value: 'certainly').set
- expect(messages).to eq ['changed: new_user_newsletter'] # no event fired here - didn't change
+ browser.radio(value: 'certainly').set
+ expect(messages).to eq ['changed: new_user_newsletter'] # no event fired here - didn't change
- browser.radio(value: 'yes').set
- browser.radio(value: 'certainly').set
- list = ['changed: new_user_newsletter', 'clicked: new_user_newsletter_yes', 'changed: new_user_newsletter']
- expect(messages).to eq list
- end
+ browser.radio(value: 'yes').set
+ browser.radio(value: 'certainly').set
+ list = ['changed: new_user_newsletter', 'clicked: new_user_newsletter_yes', 'changed: new_user_newsletter']
+ expect(messages).to eq list
end
it "raises UnknownObjectException if the radio button doesn't exist" do
expect { browser.radio(name: 'no_such_name').set }.to raise_unknown_object_exception
expect { browser.radio(xpath: "//input[@name='no_such_name']").set }.to raise_unknown_object_exception