spec/watirspec/elements/span_spec.rb in watir-7.0.0.beta1 vs spec/watirspec/elements/span_spec.rb in watir-7.0.0.beta2

- old
+ new

@@ -98,20 +98,18 @@ expect(browser.span(index: 0)).to respond_to(:text) end end # Other - not_compliant_on :headless do - describe '#click' do - it 'fires events' do - expect(browser.span(class: 'footer').text).to_not include('Javascript') - browser.span(class: 'footer').click - expect(browser.span(class: 'footer').text).to include('Javascript') - end + describe '#click', except: {headless: true} do + it 'fires events' do + expect(browser.span(class: 'footer').text).to_not include('Javascript') + browser.span(class: 'footer').click + expect(browser.span(class: 'footer').text).to include('Javascript') + end - it "raises UnknownObjectException if the span doesn't exist" do - expect { browser.span(id: 'no_such_id').click }.to raise_unknown_object_exception - expect { browser.span(title: 'no_such_title').click }.to raise_unknown_object_exception - end + it "raises UnknownObjectException if the span doesn't exist" do + expect { browser.span(id: 'no_such_id').click }.to raise_unknown_object_exception + expect { browser.span(title: 'no_such_title').click }.to raise_unknown_object_exception end end end