new user: thanks page

This commit is contained in:
simon lehericey 2018-02-27 09:49:58 +01:00 committed by Mathieu Magnin
parent e05b7647cf
commit eb937649a1
8 changed files with 67 additions and 6 deletions

View file

@ -105,7 +105,7 @@ feature 'The user' do
click_on 'Soumettre le dossier'
expect(user_dossier.reload.en_construction?).to be(true)
expect(champ_value_for('text')).to eq('super texte')
expect(page).to have_current_path(users_dossier_recapitulatif_path(user_dossier))
expect(page).to have_current_path(merci_dossier_path(user_dossier))
end
private

View file

@ -71,8 +71,8 @@ feature 'user path for dossier creation' do
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')
scenario 'user is on merci page' do
expect(page).to have_current_path(merci_dossier_path(Dossier.last))
end
end
end