Sha256: ec9796c43ad1b6173d4acfab1e4387c1b9c02ec0985c7ccb6ecab77141a53e27

Contents?: true

Size: 411 Bytes

Versions: 1

Compression:

Stored size: 411 Bytes

Contents

require "feature_helper"

feature "datetime input", js: true do
  scenario "can create a new appointment with specific datetime" do
    visit root_path
    click_on "New Appointment"
    expect(page).to have_content "Scheduled at"
    page.execute_script("$('input.date_time_picker').val('01/01/2046')")
    click_button "Create Appointment"
    expect(page).to have_content "2046-01-01 00:00:00 UTC"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datetime_picker_input-4.0.0 spec/features/datetime_picker_input_spec.rb