From ba0c21b06e2a6bad339f2fd6c597680751a7ba81 Mon Sep 17 00:00:00 2001 From: Abhishek Pandey Date: Sat, 26 Aug 2023 23:45:38 +0530 Subject: [PATCH] [ADD]:Test for homepage --- cypress/e2e/components/homepage/homepage.cy.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/components/homepage/homepage.cy.js b/cypress/e2e/components/homepage/homepage.cy.js index 8a43e30f..dfacae2f 100644 --- a/cypress/e2e/components/homepage/homepage.cy.js +++ b/cypress/e2e/components/homepage/homepage.cy.js @@ -37,6 +37,7 @@ describe("Home Page Test | CodeLabz", () => { }); it("check New Codelabz Button is working", function () { + cy.wait(5000); cy.get("[data-testId=NewCodelabzBtn]").should("exist").click(); cy.get("[data-testId=newTutorial_title]").should("exist").type("test"); cy.get("[data-testId=newTutorial_summary]").should("exist").type("test"); @@ -57,7 +58,7 @@ describe("Home Page Test | CodeLabz", () => { 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}`); + expect(loc.href).to.eq(`${this.base_url}tutorial/${id}`); }); }); });