Sha256: abf838f43a29a085ae3d4192cfa69c20c748410d1d3727b92b9c64a9c8e324c5
Contents?: true
Size: 824 Bytes
Versions: 2
Compression:
Stored size: 824 Bytes
Contents
require 'spec_helper' require 'page-object/elements' describe PageObject::Elements::Italic do let(:italic) { PageObject::Elements::Italic } 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| identifier = italic.watir_identifier_for t => 'value' expect(identifier.keys.first).to eql t end end it "should map selenium types to same" do [:class, :id, :index, :name, :xpath].each do |t| key, value = italic.selenium_identifier_for t => 'value' expect(key).to eql t end end end describe "interface" do it "should register with tag :i" do expect(::PageObject::Elements.element_class_for(:i)).to eql ::PageObject::Elements::Italic end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
page-object-1.2.0 | spec/page-object/elements/italic_spec.rb |
page-object-1.1.1 | spec/page-object/elements/italic_spec.rb |