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 e77aed1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
12 changes: 2 additions & 10 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("[email protected]");

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("[email protected]");

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")
.contains("Recevoir un nouvel email")
.should("be.disabled");

// Wait for countdown to last
Expand Down
6 changes: 3 additions & 3 deletions src/views/user/verify-email.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
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 %>"
style="width: 100%; justify-content: center;">
<button data-countdown-end-date="<%= countdownEndDate %>"
class="fr-btn fr-btn--tertiary fr-mb-2w disabled-with-countdown"
style="width: 100%; justify-content: center;" type="submit">
Recevoir un nouvel email
</button>
</form>
Expand Down

0 comments on commit e77aed1

Please sign in to comment.