Skip to content

Commit

Permalink
cypress: fix inventory management (ohcnetwork#6245)
Browse files Browse the repository at this point in the history
* fix cypress :/

* Update cypress/pageobject/Facility/FacilityCreation.ts

* fix double click

---------

Co-authored-by: Mohammed Nihal <[email protected]>
  • Loading branch information
rithviknishad and nihal467 authored Sep 8, 2023
1 parent 4519b08 commit 8bcf91d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cypress/pageobject/Facility/FacilityCreation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ class FacilityPage {
}

clickInventoryManagementOption() {
cy.get("#inventory-management", { timeout: 10000 }).should("be.visible");
cy.get("#inventory-management").click();
}

Expand Down Expand Up @@ -162,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() {
Expand Down

0 comments on commit 8bcf91d

Please sign in to comment.