Sha256: 2dc0b636eae6ff4f6a4f192e02caadcba4e81dcd631a6350080bbb8e4e205441

Contents?: true

Size: 433 Bytes

Versions: 5

Compression:

Stored size: 433 Bytes

Contents

require 'spec_helper'

describe 'Given a SitePrism page object with a checkbox field' do
  let(:page_object) { page_object_klass.new }

  let(:page_object_klass) do
    Class.new(SitePrism::Page) do
      field :terms_of_service
    end
  end

  before do
    visit 'checkbox'
  end

  it 'fills up the field' do
    page_object.terms_of_service_field.set true
    expect(page_object.terms_of_service_field).to be_checked
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tedium-0.0.5 spec/features/fill_in_checkboxes_spec.rb
tedium-0.0.4 spec/features/fill_in_checkboxes_spec.rb
tedium-0.0.3 spec/features/fill_in_checkboxes_spec.rb
tedium-0.0.2 spec/features/fill_in_checkboxes_spec.rb
tedium-0.0.1 spec/features/fill_in_checkboxes_spec.rb