-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #894 from numerique-gouv/rdumazert/delete-verify-e…
…mail-route refactor(routes): delete verify-email-help route
- Loading branch information
Showing
8 changed files
with
64 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.", | ||
|
@@ -36,25 +36,17 @@ 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") | ||
cy.get('[action="/users/send-email-verification"]') | ||
.contains("Recevoir un nouvel email") | ||
.should("be.disabled"); | ||
|
||
// Wait for countdown to last | ||
cy.wait(10 * 1000); | ||
|
||
cy.maildevDeleteAllMessages(); | ||
|
||
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") | ||
.click(); | ||
|
||
cy.contains( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,9 @@ describe("Signup into new entreprise unipersonnelle", () => { | |
cy.get('[action="/users/sign-up"] [type="submit"]').click(); | ||
|
||
// Check that the website is waiting for the user to verify their email | ||
cy.get("#verify-email > p").contains("[email protected]"); | ||
cy.get("#verify-email > div > p").contains( | ||
"[email protected]", | ||
); | ||
|
||
cy.maildevGetMessageBySubject("Vérification de votre adresse email") | ||
.then((email) => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
<div class="card-button-container"> | ||
<span> | ||
<% if (locals.showGoBackButton) { %> | ||
<% if (locals.showGoBackButton) { %> | ||
<span> | ||
<button | ||
type="button" | ||
class="fr-btn fr-btn--tertiary fr-icon-arrow-go-back-line fr-btn--icon-left go-back-link" | ||
> | ||
retour | ||
</button> | ||
<script type="module" src="<%= js('go-back.js') %>"></script> | ||
<% } %> | ||
</span> | ||
<button class="fr-btn" type="submit" <% if (locals.ariaLabel) { %>aria-label="<%= locals.ariaLabel; %>"<% } %>> | ||
</span> | ||
<% } %> | ||
<button class="<%- locals.buttonFullWidth ? ' fr-btn btn--fullwidth' : 'fr-btn' %>" | ||
|
||
<%- locals.button ? `style="${locals.button}"` : '' %> type="submit" <% if (locals.ariaLabel) { %>aria-label="<%= locals.ariaLabel; %>"<% } %>> | ||
<%= label; %> | ||
</button> | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters