Sha256: 4b9eb13a3821686dcbfb46f91c575ad50b8f3ae16dd1d7879e9ac83a51703cb4

Contents?: true

Size: 440 Bytes

Versions: 11

Compression:

Stored size: 440 Bytes

Contents

require 'spec_helper'

feature 'fae_datepicker' do

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

    release_date_input = page.find('#release_release_date')
    release_date_input.click
    within('.ui-datepicker-calendar') do
      click_link('10')
    end

    today = Date.today
    expect(release_date_input.value).to eq("#{today.strftime('%b')} 10, #{today.year}")
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

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