spec/page-object/elements/image_spec.rb in page-object-0.5.3 vs spec/page-object/elements/image_spec.rb in page-object-0.5.4

- old
+ new

@@ -4,18 +4,18 @@ describe PageObject::Elements::Image do let(:image) { PageObject::Elements::Image } describe "when mapping how to find an element" do it "should map watir types to same" do - [:class, :id, :index, :name, :xpath].each do |t| + [:class, :id, :index, :name, :xpath, :alt, :src].each do |t| identifier = image.watir_identifier_for t => 'value' identifier.keys.first.should == t end end it "should map selenium types to same" do - [:class, :id, :index, :name, :xpath].each do |t| + [:class, :id, :index, :name, :xpath, :alt, :src].each do |t| key, value = image.selenium_identifier_for t => 'value' key.should == t end end end @@ -57,6 +57,6 @@ dim.should_receive(:height).and_return(120) image.height.should == 120 end end end -end \ No newline at end of file +end