Sha256: 4a7d54de63bd4e74aac833e1bc756aa8a7b0f7d271a18424c7b31099f21d3040

Contents?: true

Size: 701 Bytes

Versions: 7

Compression:

Stored size: 701 Bytes

Contents

require 'spec_helper'
require 'page-object/elements'

describe PageObject::Elements::TableCell do

  context "interface" do
    it "should register with tag_name :td" do
      expect(::PageObject::Elements.element_class_for(:td)).to eql ::PageObject::Elements::TableCell
    end

    it "should register with tag_name :th" do
      expect(::PageObject::Elements.element_class_for(:th)).to eql ::PageObject::Elements::TableCell
    end

    it "should always be enabled" do
      table_cell_element = double('table_cell_element')
      table_cell = PageObject::Elements::TableCell.new(table_cell_element, :platform => :selenium_webdriver)
      expect(table_cell.enabled?).to be true
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
page-object-1.2.0 spec/page-object/elements/table_cell_spec.rb
page-object-1.1.1 spec/page-object/elements/table_cell_spec.rb
page_object-1.1.3 spec/page-object/elements/table_cell_spec.rb
page_object-1.1.2 spec/page-object/elements/table_cell_spec.rb
page_object-1.1.1 spec/page-object/elements/table_cell_spec.rb
page-object-1.1.0 spec/page-object/elements/table_cell_spec.rb
page-object-1.0.3 spec/page-object/elements/table_cell_spec.rb