From 9544da76510d1e00d4a45b52c7e60d42242aa532 Mon Sep 17 00:00:00 2001 From: Simon Priet Date: Wed, 8 Sep 2021 12:44:09 +0200 Subject: [PATCH] refactor(Cypress): :white_check_mark: Added a few expectations when the user is connected (land on the inbox webpage) --- cypress/integration/inbox.spec.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 }); });