Skip to content

Commit

Permalink
tests: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccadumazert committed Dec 18, 2024
1 parent 9900467 commit 2cf4803
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
14 changes: 3 additions & 11 deletions cypress/e2e/signin_with_email_verification/index.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe("sign-in with email verification renewal", () => {

cy.login("lion.eljonson@darkangels.world");

cy.contains("Vérifier votre email");
cy.contains("Confirmer votre adresse");

cy.contains(
"Information : pour garantir la sécurité de votre compte, nous avons besoin d’authentifier votre navigateur.",
Expand Down Expand Up @@ -36,16 +36,8 @@ describe("sign-in with email verification renewal", () => {

cy.login("rogal.dorn@imperialfists.world");

cy.get('a[href="/users/verify-email-help"]')
.contains(
"J'ai attendu quelques secondes et je ne reçois pas de code de vérification",
)
.click();

cy.contains("Vous ne recevez pas le code de vérification");

cy.get('[action="/users/send-email-verification"] [type="submit"]')
.contains("Cliquez ici pour recevoir un nouveau code")
cy.get('[action="/users/send-email-verification"]')
.contains("Recevoir un nouvel email")
.should("be.disabled");

// Wait for countdown to last
Expand Down
4 changes: 2 additions & 2 deletions src/views/user/verify-email.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
method="post"
>
<input type="hidden" name="_csrf" value="<%= csrfToken; %>">
<button class="fr-btn fr-btn--tertiary fr-mb-2w disabled-with-countdown"
data-countdown-end-date="<%= countdownEndDate %>"
<button data-countdown-end-date="<%= countdownEndDate %>"
class="fr-btn fr-btn--tertiary fr-mb-2w disabled-with-countdown"
style="width: 100%; justify-content: center;">
Recevoir un nouvel email
</button>
Expand Down

0 comments on commit 2cf4803

Please sign in to comment.