Skip to content

Commit

Permalink
fix failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidSumra committed Nov 7, 2024
1 parent 1566910 commit dd38cef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/e2e/facility_spec/FacilityHomepage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ describe("Facility Homepage Function", () => {
facilityNotify.verifyGetNotificationReq();
cy.verifyContentPresence("#notification-message", [noitificationMessage]);
facilityNotify.interceptGetNotificationReq();
cy.verifyAndClickElement("#notification-slide-btn", "Notifications");
facilityNotify.openNotificationSlide();
facilityNotify.verifyGetNotificationReq();
cy.verifyContentPresence("#notification-slide-msg", [noitificationMessage]);
});
Expand Down
4 changes: 4 additions & 0 deletions cypress/pageobject/Facility/FacilityNotify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ export class FacilityNotify {
cy.get("#NotifyModalMessageInput").should("be.visible").type(message);
}

openNotificationSlide(): void {
cy.get("#notification-slide-btn").should("be.visible").click();
}

visitNoticeBoard(): void {
cy.get("a[href='/notice_board']").should("be.visible").click();
}
Expand Down

0 comments on commit dd38cef

Please sign in to comment.