spec/watirspec/elements/span_spec.rb in watir-6.19.1 vs spec/watirspec/elements/span_spec.rb in watir-7.0.0.beta1
- old
+ new
@@ -15,11 +15,11 @@
expect(browser.span(class: /lead/)).to exist
expect(browser.span(index: 0)).to exist
expect(browser.span(xpath: "//span[@id='lead']")).to exist
end
- it 'visible text is found by regular expression with text locator' do
- expect(browser.span(text: /Dubito, ergo cogito, ergo sum/)).to exist
+ it 'visible text is found by regular expression with visible text locator' do
+ expect(browser.span(visible_text: /Dubito, ergo cogito, ergo sum/)).to exist
end
it 'returns the first span if given no args' do
expect(browser.span).to exist
end