demarches-normaliennes/spec/features/datepicker_spec.rb
2015-09-24 11:17:17 +02:00

19 lines
No EOL
581 B
Ruby

require 'spec_helper'
feature 'On the description page' do
let!(:dossier) { create(:dossier, :with_entreprise, :with_procedure, :with_user) }
before do
visit users_dossier_description_path dossier
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