Skip to content

Commit

Permalink
Fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineGirard committed Dec 24, 2024
1 parent d2848f4 commit 449dbf7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
current_email.click_link("Changer")
expect(page).to have_content("Définir mon mot de passe")

fill_in "password", with: "q1w2e3r4t5y6"
fill_in "Mot de passe", with: "q1w2e3r4t5y6"
expect { click_on "Enregistrer" }.not_to change { agent.reload.encrypted_password }
expect(page).to have_content("Ce mot de passe fait partie d'une liste de mots de passe fréquemment utilisés")

fill_in "password", with: "correct H0rse battery! staple"
fill_in "Mot de passe", with: "correct H0rse battery! staple"
expect { click_on "Enregistrer" }.to change { agent.reload.encrypted_password }
expect(page).to have_content("Votre mot de passe a été édité avec succès")
expect(page).to have_link("Vos organisations")
Expand All @@ -36,7 +36,7 @@
open_email(agent.email)
current_email.click_link("Changer")
expect(page).to have_content("Définir mon mot de passe")
fill_in "password", with: "correct H0rse battery! staple"
fill_in "Mot de passe", with: "correct H0rse battery! staple"
expect { click_on "Enregistrer" }.to change { agent.reload.encrypted_password }
expect(page).to have_content("Votre mot de passe a été édité avec succès")
expect(page).to have_link("Vos organisations")
Expand Down

0 comments on commit 449dbf7

Please sign in to comment.