diff --git a/cypress/e2e/assets_spec/AssetsManage.cy.ts b/cypress/e2e/assets_spec/AssetsManage.cy.ts index 17ee99bdb62..9645cd22c30 100644 --- a/cypress/e2e/assets_spec/AssetsManage.cy.ts +++ b/cypress/e2e/assets_spec/AssetsManage.cy.ts @@ -95,8 +95,7 @@ describe("Asset", () => { it("Verify Facility Asset Page Redirection", () => { cy.visit("/facility"); - assetSearchPage.typeSearchKeyword(fillFacilityName); - assetSearchPage.pressEnter(); + cy.get("#facility-search").click().clear().type(fillFacilityName); facilityPage.verifyFacilityBadgeContent(fillFacilityName); facilityPage.visitAlreadyCreatedFacility(); facilityPage.clickManageFacilityDropdown();