Sha256: 93fce65d6cb0d57e3ad6d208b82518ac8fa2d0acb26a952af90ddea92aa38028

Contents?: true

Size: 529 Bytes

Versions: 11

Compression:

Stored size: 529 Bytes

Contents

require 'spec_helper'

feature 'fae_daterange' do

  scenario 'should open and select dates', js: true do
    admin_login
    visit new_admin_release_path

    start_date_input = page.find('#release_show')
    end_date_input = page.find('#release_hide')
    start_date_input.click
    within('.date-picker-wrapper .month1') do
      find('div.day', text: '10').click
      find('div.day', text: '15').click
    end

    expect(start_date_input.value).to include('10')
    expect(end_date_input.value).to include('15')
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fae-rails-1.6.0 spec/features/form_helpers/fae_daterange_spec.rb
fae-rails-1.5.1 spec/features/form_helpers/fae_daterange_spec.rb
fae-rails-1.5.0 spec/features/form_helpers/fae_daterange_spec.rb
fae-rails-1.4.1 spec/features/form_helpers/fae_daterange_spec.rb
fae-rails-1.4.0 spec/features/form_helpers/fae_daterange_spec.rb
fae-rails-1.3.1 spec/features/form_helpers/fae_daterange_spec.rb
fae-rails-1.3.0 spec/features/form_helpers/fae_daterange_spec.rb
fae-rails-1.2.5 spec/features/form_helpers/fae_daterange_spec.rb
fae-rails-1.2.4 spec/features/form_helpers/fae_daterange_spec.rb
fae-rails-1.2.3 spec/features/form_helpers/fae_daterange_spec.rb
fae-rails-1.2.2 spec/features/form_helpers/fae_daterange_spec.rb