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

Refactor the existing cypress test to upload cover image #9109

Open
nihal467 opened this issue Nov 14, 2024 · 8 comments · May be fixed by #9373
Open

Refactor the existing cypress test to upload cover image #9109

nihal467 opened this issue Nov 14, 2024 · 8 comments · May be fixed by #9373
Assignees
Labels
needs-triage question Further information is requested work-in-progress

Comments

@nihal467
Copy link
Member

nihal467 commented Nov 14, 2024

Description

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

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();
  • Add the tests in the facilityManage.cy.ts file and any new page objects in the facilityManage.ts file.

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
Copy link

Alokih commented Nov 14, 2024

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

@github-actions github-actions bot added needs-triage question Further information is requested labels Nov 14, 2024
@nihal467 nihal467 changed the title Refactor the existing to upload cover image Refactor the existing cypress test to upload cover image Nov 14, 2024
@Jacobjeevan Jacobjeevan removed question Further information is requested needs-triage labels 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
@Jacobjeevan Jacobjeevan moved this from Up Next to Triage in Care Nov 14, 2024
@rohitlingarker
Copy link

@Jacobjeevan Can you assign this to me

@Jacobjeevan Jacobjeevan moved this from Triage to Up Next in Care Nov 14, 2024
@rohitlingarker
Copy link

@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

@JavidSumra
Copy link
Contributor

Hey @rohitlingarker are you still working on this issue?

@github-actions github-actions bot added needs-triage question Further information is requested labels Dec 2, 2024
@rohitlingarker
Copy link

Yes Iam @JavidSumra

@JavidSumra
Copy link
Contributor

Hey @nihal467 can you please assign this issue to me?

@github-actions github-actions bot added needs-triage question Further information is requested labels Dec 9, 2024
@sanjayh-2022
Copy link

sanjayh-2022 commented Dec 9, 2024

Sir  @nihal467 can you please assign this issue to me?
I am really interested to work on this issue

@JavidSumra
Copy link
Contributor

Hey @nihal467 shall i need to create a new test file under facility_spec?
ref #9134 (comment)

@JavidSumra JavidSumra linked a pull request Dec 11, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage question Further information is requested work-in-progress
Projects
Status: Up Next
6 participants