commencer: redirect to the procedure page after sign-in and sign-up

This commit is contained in:
Pierre de La Morinerie 2019-01-16 15:16:15 +00:00
parent 016e5f2e6f
commit bb753ce23e
11 changed files with 62 additions and 27 deletions

View file

@ -19,6 +19,10 @@ feature 'The gestionnaire part' do
expect(page).to have_current_path new_user_session_path
sign_in_with(gestionnaire.email, password, true)
expect(page).to have_current_path(commencer_path(path: procedure.path))
click_on 'Commencer la démarche'
expect(page).to have_content('Identifier votre établissement')
expect(page).to have_current_path(siret_dossier_path(procedure.reload.dossiers.last))
expect(page).to have_content(procedure.libelle)
end