spec/watirspec/elements/dd_spec.rb in watir-6.5.0 vs spec/watirspec/elements/dd_spec.rb in watir-6.6.0
- old
+ new
@@ -75,11 +75,13 @@
describe "#text" do
it "returns the text of the element" do
expect(browser.dd(id: "someone").text).to eq "John Doe"
end
- it "returns an empty string if the element exists but contains no text" do
- expect(browser.dd(class: 'noop').text).to eq ""
+ bug "Safari does not strip text", :safari do
+ it "returns an empty string if the element exists but contains no text" do
+ expect(browser.dd(class: 'noop').text).to eq ""
+ end
end
it "raises UnknownObjectException if the element does not exist" do
expect { browser.dd(id: "no_such_id").text }.to raise_unknown_object_exception
expect { browser.dd(title: "no_such_title").text }.to raise_unknown_object_exception