spec/watirspec/elements/text_field_spec.rb in watir-6.3.0 vs spec/watirspec/elements/text_field_spec.rb in watir-6.4.0.rc1

- old
+ new

@@ -195,9 +195,13 @@ end it "raises UnknownObjectException if the text field doesn't exist" do expect { browser.text_field(id: 'no_such_id').readonly? }.to raise_unknown_object_exception end + + it "raises UnknownReadOnlyException if sending keys to readonly element" do + expect { browser.text_field(id: 'new_user_code').set 'foo' }.to raise_object_read_only_exception + end end # Manipulation methods describe "#append" do it "appends the text to the text field" do