From e4179787de7d5dc397cfe0938817ecf66eb12d02 Mon Sep 17 00:00:00 2001 From: Simon Priet Date: Wed, 8 Sep 2021 12:36:30 +0200 Subject: [PATCH] refactor(Cypress-Gherkin): :white_check_mark: Added a test expect to check that we are correctly connect after login. --- cypress/integration/sendDocument/sendDocument.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cypress/integration/sendDocument/sendDocument.js b/cypress/integration/sendDocument/sendDocument.js index 42e2e852..7f55f2fe 100644 --- a/cypress/integration/sendDocument/sendDocument.js +++ b/cypress/integration/sendDocument/sendDocument.js @@ -211,7 +211,9 @@ describe("Send a document", () => { cy.get('#validateButton').click(); }); cy.visit("/request"); - + cy.get("#account-menu div[title]").should((elm) => { + expect(elm).to.contain("candidature-qa@example.org") + }); }); When("I send the mail", () => {