Sha256: ed0945208ac3a840de6244aef58a57346c6b18bab31535b28d19477cf3c392f2

Contents?: true

Size: 528 Bytes

Versions: 5

Compression:

Stored size: 528 Bytes

Contents

# frozen_string_literal: true

describe TestCentricity::AppLabel, required: true do
  subject(:test_label) { described_class.new(:test_label, self, { accessibility_id: 'label 1' }, :page) }

  it 'returns class' do
    expect(test_label.class).to eql TestCentricity::AppLabel
  end

  it 'registers with type label' do
    expect(test_label.get_object_type).to eql :label
  end

  it 'returns caption' do
    allow(test_label).to receive(:caption).and_return('caption')
    expect(test_label.caption).to eql 'caption'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
testcentricity-3.0.4 spec/testcentricity/elements/label_spec.rb
testcentricity-3.0.3 spec/testcentricity/elements/label_spec.rb
testcentricity-3.0.2 spec/testcentricity/elements/label_spec.rb
testcentricity-3.0.1 spec/testcentricity/elements/label_spec.rb
testcentricity-3.0.0 spec/testcentricity/elements/label_spec.rb