You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Verify the functionality of the occupancy badge on the facility card in the facility homepage.
General Instruction
Code should follow the POM structure.
Reuse existing custom functions and those in commands.ts where possible. Before creating a new function, check for an existing one that matches the element's ID to avoid redundancy.
Add API request verification wherever required using cy.intercept();
Test Worflow to be test
Choose a facility (other than Dummy Facility 40) that has a location assigned but currently has no beds available.
Verify that the occupancy badge displays correctly, showing the facility's current status (e.g., "0 beds available").
Add a new patient to the facility, ensuring only the mandatory fields are filled during consultation.
Check that the badge on the facility card is now highlighted in red, indicating that a patient is present in the facility, but no bed is available.
Add a bed to the selected facility.
Confirm that the badge now reflects the updated bed count, displays the new count accurately, and that the red highlight is removed.
Screenshot
The text was updated successfully, but these errors were encountered:
nihal467
changed the title
Add New Cypress Test to verify the behavior of the bed capacity badge in facility card
Add Cypress Test to Verify Bed Capacity Badge Behavior on Facility Card
Nov 13, 2024
Describe the Test
Verify the functionality of the occupancy badge on the facility card in the facility homepage.
General Instruction
Test Worflow to be test
Screenshot
The text was updated successfully, but these errors were encountered: