[fix #1411] user: link new screen to the rest of the application

This commit is contained in:
simon lehericey 2018-02-21 18:36:06 +01:00
parent d702a0c083
commit a0667f5ad9
14 changed files with 21 additions and 77 deletions

View file

@ -63,13 +63,13 @@ feature 'user path for dossier creation' do
page.check('dossier_autorisation_donnees')
page.find_by_id('etape_suivante').click
end
scenario 'user is on description page' do
expect(page).to have_css('#description-page')
scenario 'user is on edition page' do
expect(page).to have_current_path(modifier_dossier_path(Dossier.last))
end
context 'user fill and validate description page' do
before do
page.find_by_id("champs_#{Dossier.last.champs.first.id}").set 'Mon super projet'
page.find_by_id('suivant').click
page.find_by_id("dossier_champs_attributes_0_value").set 'Mon super projet'
click_on 'Soumettre le dossier'
end
scenario 'user is on recap page' do
expect(page).to have_css('#users-recapitulatif-dossier-show')