Skip to content

Commit

Permalink
fixe les tests suite au changement de wording sur les layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
kara22 committed Aug 22, 2024
1 parent 1da79ae commit 0dbd27d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/system/france_connect/france_connect_particulier_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@
before { page.find('.fr-connect').click }

scenario 'he is redirected to user dossiers page' do
expect(page).to have_content("Choisissez votre e-mail de contact")
expect(page).to have_content("Choisissez votre email de contact pour finaliser votre connexion")
find('#use_fc_email').click
expect(page).to have_content("Confirmation envoyée")
expect(page).to have_content("Confirmez votre email")
click_on 'Continuer'
expect(User.find_by(email: email)).not_to be nil
end

scenario 'he can choose not to use FranceConnect email and input an alternative email' do
expect(page).to have_content("Choisissez votre e-mail de contact")
expect(page).to have_content("Choisissez votre email de contact pour finaliser votre connexion")

expect(page).to have_selector("input[name='email']", visible: true, wait: 10)

Expand Down

0 comments on commit 0dbd27d

Please sign in to comment.