spec/druid/elements/element_spec.rb in druid-ts-1.1.1 vs spec/druid/elements/element_spec.rb in druid-ts-1.1.2
- old
+ new
@@ -144,7 +144,12 @@
it "should be able to focus element" do
expect(we).to receive(:focus)
element.focus
end
+
+ it "should know if the element is disabled" do
+ expect(we).to receive(:enabled?).and_return(false)
+ expect(element).to be_disabled
+ end
end
end