Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nihal467 opened this issue Nov 13, 2024 · 2 comments · May be fixed by #9145
Open

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

nihal467 opened this issue Nov 13, 2024 · 2 comments · May be fixed by #9145
Assignees

Comments

@nihal467
Copy link
Member

nihal467 commented Nov 13, 2024

Describe the Test

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

  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

@nihal467 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
@Jacobjeevan Jacobjeevan self-assigned this Nov 14, 2024
@Jacobjeevan Jacobjeevan added this to Care Nov 14, 2024
@github-project-automation github-project-automation bot moved this to Triage in Care Nov 14, 2024
@Jacobjeevan Jacobjeevan moved this from Triage to Up Next in Care Nov 14, 2024
@Alokih
Copy link
Contributor

Alokih commented Nov 14, 2024

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

@github-actions github-actions bot added needs-triage question Further information is requested labels Nov 14, 2024
@Jacobjeevan
Copy link
Contributor

@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 👍

@Jacobjeevan Jacobjeevan removed question Further information is requested needs-triage labels Nov 14, 2024
@Jacobjeevan Jacobjeevan moved this from Up Next to In Progress in Care Nov 15, 2024
@Jacobjeevan Jacobjeevan linked a pull request Nov 17, 2024 that will close this issue
6 tasks
@Jacobjeevan Jacobjeevan moved this from In Progress to Review required in Care Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Review required
Development

Successfully merging a pull request may close this issue.

3 participants