From e77aed12f552bc6402df42d49e27d16c06e7f384 Mon Sep 17 00:00:00 2001 From: rebeccadumazert Date: Wed, 18 Dec 2024 17:11:04 +0100 Subject: [PATCH] tests: update test --- .../e2e/signin_with_email_verification/index.cy.ts | 12 ++---------- src/views/user/verify-email.ejs | 6 +++--- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/cypress/e2e/signin_with_email_verification/index.cy.ts b/cypress/e2e/signin_with_email_verification/index.cy.ts index 13b5c50fa..19c830def 100644 --- a/cypress/e2e/signin_with_email_verification/index.cy.ts +++ b/cypress/e2e/signin_with_email_verification/index.cy.ts @@ -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.", @@ -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") + .contains("Recevoir un nouvel email") .should("be.disabled"); // Wait for countdown to last diff --git a/src/views/user/verify-email.ejs b/src/views/user/verify-email.ejs index bfcb299e8..a88ea0ae5 100644 --- a/src/views/user/verify-email.ejs +++ b/src/views/user/verify-email.ejs @@ -41,9 +41,9 @@ method="post" > -