ohcnetwork / care_fe

Care is a Digital Public Good enabling TeleICU & Decentralised Administration of Healthcare Capacity across States.
https://care.ohc.network
MIT License
257 stars 443 forks source link

Add Cypress Test to Verify Bed Capacity Badge Behavior on Facility Card #9107

Open nihal467 opened 1 week ago

nihal467 commented 1 week ago

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

  1. Choose a facility (other than Dummy Facility 40) that has a location assigned but currently has no beds available.
  2. Verify that the occupancy badge displays correctly, showing the facility's current status (e.g., "0 beds available").
  3. Add a new patient to the facility, ensuring only the mandatory fields are filled during consultation.
  4. 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.
  5. Add a bed to the selected facility.
  6. Confirm that the badge now reflects the updated bed count, displays the new count accurately, and that the red highlight is removed.

Screenshot

Image

Alokih commented 1 week ago

@Jacobjeevan sir , Are you working on it ? If not can I try this as I have created a PR for previous issue ?

Jacobjeevan commented 1 week ago

@Jacobjeevan sir , Are you working on it ? If not can I try this as I have created a PR for previous issue ?

I'm working on this issue 👍

Note: You don't need to refer to anyone on team by sir/madam. Just call us by our names 👍