diff --git a/cypress/e2e/facility_spec/FacilityHomepage.cy.ts b/cypress/e2e/facility_spec/FacilityHomepage.cy.ts index 05a1d4ccdfb..8ece17829c2 100644 --- a/cypress/e2e/facility_spec/FacilityHomepage.cy.ts +++ b/cypress/e2e/facility_spec/FacilityHomepage.cy.ts @@ -142,13 +142,16 @@ describe("Facility Homepage Function", () => { facilityNotify.verifyFacilitySearchReq(); // verify facility name and notify button and click it manageUserPage.assertFacilityInCard(facilityName); + cy.log("Clicking facility notify button"); facilityHome.clickFacilityNotifyButton(); + cy.log("Clicked facility notify button"); // check visiblity of pop-up and frontend error on empty message cy.verifyContentPresence("#notify-facility-name", [facilityName]); cy.submitButton("Notify"); cy.verifyContentPresence(".error-text", [notificationErrorMsg]); // close pop-up and verify facilityHome.verifyAndCloseNotifyModal(); + cy.log("Clicked facility notify button again"); // send notification facilityHome.clickFacilityNotifyButton(); facilityNotify.fillNotifyText(noitificationMessage); diff --git a/cypress/pageobject/Facility/FacilityHome.ts b/cypress/pageobject/Facility/FacilityHome.ts index dea7de0e7b6..90cb0bb9979 100644 --- a/cypress/pageobject/Facility/FacilityHome.ts +++ b/cypress/pageobject/Facility/FacilityHome.ts @@ -35,7 +35,7 @@ class FacilityHome { } clickFacilityNotifyButton() { - cy.get("#facility-notify").first().click(); + cy.get("#facility-notify", { timeout: 20000 }).first().click(); } clickLiveMonitorButton() {