Sha256: ee352911535756c5ecb172c72d672c89136ee87aad8e6d25c2d65e9aaceb5a1a
Contents?: true
Size: 1.01 KB
Versions: 3
Compression:
Stored size: 1.01 KB
Contents
require 'spec_helper' require 'druid/elements' describe Druid::Elements::Button do describe "when mapping how to find an element" do it "should map watir types to same" do [:class, :id, :index, :name, :value, :xpath, :src, :alt].each do |t| identifier = Druid::Elements::Button.identifier_for t => 'value' expect(identifier.keys.first).to eql t end end end describe "interface" do it "should register with type :submit" do expect(Druid::Elements.element_class_for(:input, :submit)).to be Druid::Elements::Button end it "should register with type :image" do expect(Druid::Elements.element_class_for(:input, :image)).to be Druid::Elements::Button end it "should register with type :button" do expect(Druid::Elements.element_class_for(:input, :button)).to be Druid::Elements::Button end it "should register with type :reset" do expect(Druid::Elements.element_class_for(:input, :reset)).to be Druid::Elements::Button end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
druid-ts-1.1.2 | spec/druid/elements/button_spec.rb |
druid-ts-1.1.1 | spec/druid/elements/button_spec.rb |
druid-ts-1.1.0 | spec/druid/elements/button_spec.rb |