demarches-normaliennes/spec/features/datepicker_spec.rb

19 lines
581 B
Ruby
Raw Normal View History

2015-08-24 11:42:06 +02:00
require 'spec_helper'
feature 'On the description page' do
let!(:dossier) { create(:dossier, :with_entreprise, :with_procedure, :with_user) }
2015-08-24 11:42:06 +02:00
before do
2015-09-23 19:20:03 +02:00
visit users_dossier_description_path dossier
2015-08-24 11:42:06 +02:00
end
scenario 'date_previsionnelle field is present' do
expect(page).to have_css('#date_previsionnelle')
end
context 'when user clic on date_previsionnelle field', js: true do
before do
find_by_id('date_previsionnelle').click
end
scenario 'the datepicker popup is displayed' do
expect(page).to have_css('.datepicker-days')
end
end
end