Skip to content

Commit

Permalink
[FIX]:Test for homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
ABHISHEK-PANDEY2 committed Aug 26, 2023
1 parent ba0c21b commit 4b1a6bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cypress/e2e/components/homepage/homepage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ describe("Home Page Test | CodeLabz", () => {
it("Check New Codelabz is visible on homepage", function () {
cy.visit(this.base_url);
cy.get("[data-testId=codelabz]").should("exist");
cy.get("[data-testId=codelabzDetails]").should("exist").click();
cy.wait(5000);
cy.location().should(loc => {
expect(loc.href).to.eq(`${this.base_url}tutorial/${id}`);
cy.get("[data-testId=codelabzDetails]").spread((first, second) => {
first.click();
cy.wait(5000);
cy.url().should("include", "/tutorial");
});
});
});

0 comments on commit 4b1a6bd

Please sign in to comment.