From cc4c64f99aafa7d9ed574908a2c341b913ef374e Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Fri, 8 Sep 2023 10:38:20 +0530 Subject: [PATCH 1/3] fix cypress :/ --- cypress/pageobject/Facility/FacilityCreation.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cypress/pageobject/Facility/FacilityCreation.ts b/cypress/pageobject/Facility/FacilityCreation.ts index 3eac29f14c5..9546d9ca65f 100644 --- a/cypress/pageobject/Facility/FacilityCreation.ts +++ b/cypress/pageobject/Facility/FacilityCreation.ts @@ -119,6 +119,7 @@ class FacilityPage { } clickInventoryManagementOption() { + cy.get("inventory-management", { timeout: 10000 }).should("be.visible"); cy.get("#inventory-management").click(); } From f809ed38545d8173ec51d05c6ff2a720c9b4349d Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Fri, 8 Sep 2023 05:10:08 +0000 Subject: [PATCH 2/3] Update cypress/pageobject/Facility/FacilityCreation.ts --- cypress/pageobject/Facility/FacilityCreation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/pageobject/Facility/FacilityCreation.ts b/cypress/pageobject/Facility/FacilityCreation.ts index 9546d9ca65f..0063b1eee21 100644 --- a/cypress/pageobject/Facility/FacilityCreation.ts +++ b/cypress/pageobject/Facility/FacilityCreation.ts @@ -119,7 +119,7 @@ class FacilityPage { } clickInventoryManagementOption() { - cy.get("inventory-management", { timeout: 10000 }).should("be.visible"); + cy.get("#inventory-management", { timeout: 10000 }).should("be.visible"); cy.get("#inventory-management").click(); } From 9476480142c980860664cae6394310f552147ba2 Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Fri, 8 Sep 2023 11:22:40 +0530 Subject: [PATCH 3/3] fix double click --- cypress/pageobject/Facility/FacilityCreation.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/cypress/pageobject/Facility/FacilityCreation.ts b/cypress/pageobject/Facility/FacilityCreation.ts index 0063b1eee21..aa46d4f1105 100644 --- a/cypress/pageobject/Facility/FacilityCreation.ts +++ b/cypress/pageobject/Facility/FacilityCreation.ts @@ -163,8 +163,6 @@ class FacilityPage { cy.intercept("GET", "**/api/v1/facility/**").as("getFacilities"); cy.get("[id='facility-details']").first().click(); cy.wait("@getFacilities").its("response.statusCode").should("eq", 200); - cy.get("#manage-facility-dropdown button").should("be.visible"); - cy.get("[id=manage-facility-dropdown]").scrollIntoView().click(); } clickManageInventory() {