adapting the specs

This commit is contained in:
Judith 2020-09-01 15:28:31 +02:00
parent 9553dae7bd
commit 7eee9beed7
7 changed files with 12 additions and 12 deletions

View file

@ -60,7 +60,7 @@ feature 'Signin in:' do
click_on 'Connexion'
sign_in_with user.email, password
expect(page).to have_content 'Vous devez confirmer votre adresse email pour continuer'
expect(page).to have_content('Vous devez confirmer votre compte par courriel.')
end
end
end

View file

@ -41,7 +41,7 @@ feature 'Invitations' do
# Confirm the account
# (The user should be redirected to the dossier they was invited on)
click_confirmation_link_for invite.email
expect(page).to have_content('Votre compte a été activé')
expect(page).to have_content('Votre compte a bien été confirmé.')
expect(page).to have_current_path(brouillon_dossier_path(dossier))
end
end

View file

@ -13,7 +13,7 @@ feature 'Managing password:' do
perform_enqueued_jobs do
click_on 'Réinitialiser'
end
expect(page).to have_content 'vous allez recevoir un lien de réinitialisation par email'
expect(page).to have_content('Si votre courriel existe dans notre base de données, vous recevrez un lien vous permettant de récupérer votre mot de passe.')
click_reset_password_link_for user.email
expect(page).to have_content 'Changement de mot de passe'
@ -21,7 +21,7 @@ feature 'Managing password:' do
fill_in 'user_password', with: new_password
fill_in 'user_password_confirmation', with: new_password
click_on 'Changer le mot de passe'
expect(page).to have_content('Votre mot de passe a été changé avec succès')
expect(page).to have_content('Votre mot de passe a bien été modifié.')
end
end
@ -40,7 +40,7 @@ feature 'Managing password:' do
perform_enqueued_jobs do
click_on 'Réinitialiser'
end
expect(page).to have_content 'vous allez recevoir un lien de réinitialisation par email'
expect(page).to have_content('Si votre courriel existe dans notre base de données, vous recevrez un lien vous permettant de récupérer votre mot de passe.')
click_reset_password_link_for user.email
@ -49,7 +49,7 @@ feature 'Managing password:' do
fill_in 'user_password', with: new_password
fill_in 'user_password_confirmation', with: new_password
click_on 'Changer le mot de passe'
expect(page).to have_content('Votre mot de passe a été changé avec succès')
expect(page).to have_content('Votre mot de passe a bien été modifié.')
end
end
end

View file

@ -10,7 +10,7 @@ feature 'Signing up:' do
expect(page).to have_content "nous avons besoin de vérifier votre adresse #{user_email}"
click_confirmation_link_for user_email
expect(page).to have_content 'Votre compte a été activé'
expect(page).to have_content('Votre compte a bien été confirmé.')
expect(page).to have_current_path dossiers_path
end
@ -80,7 +80,7 @@ feature 'Signing up:' do
# After confirmation, the user is redirected to the procedure they were initially starting
# (even when confirming the account in another browser).
expect(page).to have_current_path(commencer_path(path: procedure.path))
expect(page).to have_content 'Votre compte a été activé'
expect(page).to have_content I18n.t('devise.confirmations.confirmed')
click_on 'Commencer la démarche'
expect(page).to have_current_path identite_dossier_path(procedure.reload.dossiers.last)
@ -112,7 +112,7 @@ feature 'Signing up:' do
# After confirmation, the user is redirected to the procedure they were initially starting
# (even when confirming the account in another browser).
expect(page).to have_current_path(commencer_path(path: procedure.path))
expect(page).to have_content 'Votre compte a été activé'
expect(page).to have_content I18n.t('devise.confirmations.confirmed')
expect(page).to have_content 'Commencer la démarche'
end
end