Skip to content

Commit

Permalink
Added tests for disabled submit button
Browse files Browse the repository at this point in the history
  • Loading branch information
kihan2518B committed Dec 5, 2024
1 parent 9fef710 commit 86bb1b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cypress/e2e/facility_spec/FacilityManage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ describe("Facility Manage Functions", () => {
facilityManage.verifyTotalDoctorCapacity(doctorCapacity);
// edit a existing doctor
facilityManage.clickEditFacilityDoctorCapacity();
cy.get('button[type="submit"]').should("be.disabled");
facilityPage.fillDoctorCount(doctorModifiedCapacity);
facilityPage.saveAndExitDoctorForm();
facilityManage.verifySuccessMessageVisibilityAndContent(
Expand Down Expand Up @@ -149,6 +150,7 @@ describe("Facility Manage Functions", () => {
facilityManage.verifyFacilityBedCapacity(currentOccupied);
// edit a existing bed
facilityManage.clickEditFacilityBedCapacity();
cy.get('button[type="submit"]').should("be.disabled");
facilityPage.fillTotalCapacity(totalUpdatedCapacity);
facilityPage.fillCurrentlyOccupied(currentUpdatedOccupied);
facilityPage.saveAndExitBedCapacityForm();
Expand Down

0 comments on commit 86bb1b2

Please sign in to comment.