Sha256: 04d79aae2f98215f2c17a71558e87694af233892398021d406539ee1476f2569

Contents?: true

Size: 550 Bytes

Versions: 9

Compression:

Stored size: 550 Bytes

Contents

require 'spec_helper'
require 'druid/elements'

describe Druid::Elements::Label do
  describe "when mapping how to find an element" do
    it "should map watir types to same" do
      [:class, :id, :text, :index, :xpath].each do |t|
        identifier = Druid::Elements::Label.identifier_for t => 'value'
        expect(identifier.keys.first).to eql t
      end
    end
  end

  describe "interface" do
    it "should register with tag :label" do
      expect(Druid::Elements.element_class_for(:label)).to be Druid::Elements::Label
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
druid-ts-1.2.2 spec/druid/elements/label_spec.rb
druid-ts-1.2.1 spec/druid/elements/label_spec.rb
druid-ts-1.2.0 spec/druid/elements/label_spec.rb
druid-ts-1.1.8 spec/druid/elements/label_spec.rb
druid-ts-1.1.7 spec/druid/elements/label_spec.rb
druid-ts-1.1.6 spec/druid/elements/label_spec.rb
druid-ts-1.1.5 spec/druid/elements/label_spec.rb
druid-ts-1.1.4 spec/druid/elements/label_spec.rb
druid-ts-1.1.3 spec/druid/elements/label_spec.rb