Skip to content

Commit

Permalink
tying fix in notification test suit
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidSumra committed Nov 8, 2024
1 parent dd38cef commit 76dac1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cypress/e2e/facility_spec/FacilityHomepage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion cypress/pageobject/Facility/FacilityHome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class FacilityHome {
}

clickFacilityNotifyButton() {
cy.get("#facility-notify").first().click();
cy.get("#facility-notify", { timeout: 20000 }).first().click();
}

clickLiveMonitorButton() {
Expand Down

0 comments on commit 76dac1e

Please sign in to comment.