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

- old
+ new

@@ -42,22 +42,20 @@ expect { browser.tbody(id: 3.14).exists? }.to raise_error(TypeError) expect { browser.table(index: 0).tbody(id: 3.14).exists? }.to raise_error(TypeError) end end - bug 'Safari does not strip text', :safari do - describe '#[]' do - it 'returns the row at the given index (page context)' do - expect(browser.tbody(id: 'first')[0].text).to eq 'March 2008' - expect(browser.tbody(id: 'first')[1][0].text).to eq 'Gregory House' - expect(browser.tbody(id: 'first')[2][0].text).to eq 'Hugh Laurie' - end + describe '#[]', except: {browser: :safari, reason: 'Safari does not strip text'} do + it 'returns the row at the given index (page context)' do + expect(browser.tbody(id: 'first')[0].text).to eq 'March 2008' + expect(browser.tbody(id: 'first')[1][0].text).to eq 'Gregory House' + expect(browser.tbody(id: 'first')[2][0].text).to eq 'Hugh Laurie' + end - it 'returns the row at the given index (table context)' do - expect(browser.table(index: 0).tbody(id: 'first')[0].text).to eq 'March 2008' - expect(browser.table(index: 0).tbody(id: 'first')[1][0].text).to eq 'Gregory House' - expect(browser.table(index: 0).tbody(id: 'first')[2][0].text).to eq 'Hugh Laurie' - end + it 'returns the row at the given index (table context)' do + expect(browser.table(index: 0).tbody(id: 'first')[0].text).to eq 'March 2008' + expect(browser.table(index: 0).tbody(id: 'first')[1][0].text).to eq 'Gregory House' + expect(browser.table(index: 0).tbody(id: 'first')[2][0].text).to eq 'Hugh Laurie' end end describe '#row' do it 'finds the first row matching the selector' do