diff --git a/cypress/integration/inbox.spec.js b/cypress/integration/inbox.spec.js index f0f44efd..f4e63a4b 100644 --- a/cypress/integration/inbox.spec.js +++ b/cypress/integration/inbox.spec.js @@ -59,20 +59,26 @@ context("The inbox page", function() { cy.wait(20000).then(() => { cy.get('#validateButton').click(); }); + cy.get("#account-menu div[title]").should((elm) => { + expect(elm).to.contain("candidature-qa@example.org") + }); }); it("It load the inbox page of a valid user", ()=> { cy.visit("/request"); + cy.get("#account-menu div[title]").should((elm) => { + expect(elm).to.contain("candidature-qa@example.org") + }); cy.get("#dashboard-dropzone tr:first-child td").eq(1).click(); cy.get("#sending-button").click(); }); it("It checks for messages in the inbox", () => { - + // to-do }); it("Open the message for data that has been injected previously", () => { - + // to-do }); });