Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseCSG committed Jun 14, 2024
2 parents e2c3938 + c62d163 commit 19c244b
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions cypress/e2e/pcp.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,9 @@ describe("PCP", () => {
cy.get("label").contains("Email").click().type("[email protected]");
cy.get("label").contains("Password").click().type("cypress");
cy.get("button").contains("Log in").click();
cy.wait(15000);
cy.wait(12000);
cy.url().should("include", "/dashboard");
cy.visit("/pcp");
cy.wait(15000);
});

describe("PCP", () => {
beforeEach(() => {
cy.visit("/");
cy.get("label").contains("Email").click().type("[email protected]");
cy.get("label").contains("Password").click().type("cypress");
cy.get("button").contains("Log in").click();
cy.wait(12000);
cy.url().should("include", "/dashboard");
cy.visit("/pcp");
cy.wait(8000);
});

it("Should change the status of the task", () => {
const statusButton = cy.get('[data-testid="task-status-button"]');
statusButton.should("exist");
statusButton.click();
cy.get('[data-testid="IN_PROGRESS"]').click();

cy.get("div")
.contains("Task status updated successfully")
.should("exist");
});
cy.wait(8000);
});
});

0 comments on commit 19c244b

Please sign in to comment.