spec/watirspec/elements/text_field_spec.rb in watir-6.6.0 vs spec/watirspec/elements/text_field_spec.rb in watir-6.6.1
- old
+ new
@@ -181,15 +181,13 @@
expect { browser.text_field(index: 1337).disabled? }.to raise_unknown_object_exception
end
end
describe "#readonly?" do
- bug "https://bugzilla.mozilla.org/show_bug.cgi?id=1200366", :firefox do
- it "returns true for read-only text fields" do
- expect(browser.text_field(name: "new_user_code")).to be_readonly
- expect(browser.text_field(id: "new_user_code")).to be_readonly
- end
+ it "returns true for read-only text fields" do
+ expect(browser.text_field(name: "new_user_code")).to be_readonly
+ expect(browser.text_field(id: "new_user_code")).to be_readonly
end
it "returns false for writable text fields" do
expect(browser.text_field(name: "new_user_email")).to_not be_readonly
end
@@ -240,13 +238,11 @@
it "raises UnknownObjectException if the text field doesn't exist" do
expect { browser.text_field(id: "no_such_id").clear }.to raise_unknown_object_exception
end
- bug "https://bugzilla.mozilla.org/show_bug.cgi?id=1200366", :firefox do
- it "raises ObjectReadOnlyException if the object is read only" do
- expect { browser.text_field(id: "new_user_code").clear }.to raise_object_read_only_exception
- end
+ it "raises ObjectReadOnlyException if the object is read only" do
+ expect { browser.text_field(id: "new_user_code").clear }.to raise_object_read_only_exception
end
end
describe "#value=" do
it "sets the value of the element" do