Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(email): use smtp protocol #650

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 18 additions & 43 deletions cypress/e2e/delete_totp/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
describe("delete TOTP connexion", () => {
before(() => {
cy.mailslurp().then((mailslurp) =>
mailslurp.inboxController.deleteAllInboxEmails({
inboxId: "eab4ab97-875d-4ec7-bdcc-04323948ee63",
}),
);
cy.mailslurp().then((mailslurp) =>
mailslurp.inboxController.deleteAllInboxEmails({
inboxId: "c9fabb94-9274-4ece-a3d0-54b1987c8588",
}),
);
});

it("should delete TOTP application", function () {
cy.visit("/connection-and-account");

Expand All @@ -23,21 +10,15 @@ describe("delete TOTP connexion", () => {

cy.contains("L’application d’authentification a bien été supprimée.");

cy.mailslurp()
// use inbox id and a timeout of 30 seconds
.then((mailslurp) =>
mailslurp.waitForLatestEmail(
"eab4ab97-875d-4ec7-bdcc-04323948ee63",
60000,
true,
),
)
// check subject of deletion email
.then((email) => {
expect(email.subject).to.include(
"Suppression d'une application d'authentification à double facteur",
);
});
cy.maildevGetMessageBySubject(
"Suppression d'une application d'authentification à double facteur",
).then((email) => {
cy.maildevVisitMessageById(email.id);
cy.contains(
"L'application a été supprimée comme étape de connexion à deux facteurs.",
);
cy.maildevDeleteMessageById(email.id);
});
});

it("should not be ask to sign with TOTP", function () {
Expand All @@ -57,21 +38,15 @@ describe("delete TOTP connexion", () => {

cy.contains("Désactiver la validation en deux étapes").click();

cy.mailslurp()
// use inbox id and a timeout of 30 seconds
.then((mailslurp) =>
mailslurp.waitForLatestEmail(
"c9fabb94-9274-4ece-a3d0-54b1987c8588",
60000,
true,
),
)
// check subject of deletion email
.then((email) => {
expect(email.subject).to.include(
"Désactivation de la validation en deux étapes",
);
});
cy.maildevGetMessageBySubject(
"Désactivation de la validation en deux étapes",
).then((email) => {
cy.maildevVisitMessageById(email.id);
cy.contains(
"Votre compte ProConnect n'est plus protégé par la validation en deux étapes.",
);
cy.maildevDeleteMessageById(email.id);
});
});

it("should not be ask to sign with TOTP", function () {
Expand Down
200 changes: 200 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading