ohcnetwork / care_fe

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

Refactor the existing cypress test to upload cover image #9109

Open nihal467 opened 4 days ago

nihal467 commented 4 days ago

Description

Enhance the existing test suite to include functionality for uploading, editing, and deleting the facility cover image.

General Instruction

Test Workflows

Test 1: District Admin

  1. Log in as a district admin and navigate to any facility.
  2. Open the facility cover image pop-up, then click the Cancel button to verify it functions correctly.
  3. Reopen the cover image pop-up and upload an image, verifying the API response.
  4. Edit the current cover image by uploading a new one, and verify the API response.
  5. Delete the existing cover image, confirming the API response.

Test 2: Access Verification with Non-Admin User

  1. Log in as the devdoctor user.
  2. Repeat the steps from Test 1 to verify functionality consistency across user roles.

Screenshots

Image

Alokih commented 4 days ago

@nihal sir , can I work on this one also ?

rohitlingarker commented 4 days ago

@Jacobjeevan Can you assign this to me

rohitlingarker commented 3 days ago

@nihal467 sir, as in the issue description , to verify functionality consistency across user roles , can i define tests as such for multiple roles:

Image

or create a custom function in loginpage which takes user role and logs a user

Image