refactor(Cypress): ✅ Added a few expectations when the user is connected (land on the inbox webpage)
This commit is contained in:
parent
86a3ea7108
commit
9544da7651
@ -59,20 +59,26 @@ context("The inbox page", function() {
|
|||||||
cy.wait(20000).then(() => {
|
cy.wait(20000).then(() => {
|
||||||
cy.get('#validateButton').click();
|
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", ()=> {
|
it("It load the inbox page of a valid user", ()=> {
|
||||||
cy.visit("/request");
|
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("#dashboard-dropzone tr:first-child td").eq(1).click();
|
||||||
cy.get("#sending-button").click();
|
cy.get("#sending-button").click();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("It checks for messages in the inbox", () => {
|
it("It checks for messages in the inbox", () => {
|
||||||
|
// to-do
|
||||||
});
|
});
|
||||||
|
|
||||||
it("Open the message for data that has been injected previously", () => {
|
it("Open the message for data that has been injected previously", () => {
|
||||||
|
// to-do
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user