spec/page-object/elements/button_spec.rb in page-object-0.5.1 vs spec/page-object/elements/button_spec.rb in page-object-0.5.2

- old
+ new

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