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 Facility Export existing cypress test and Add New Sidebar collapse test along with it #9043

Open
1 task
nihal467 opened this issue Nov 7, 2024 · 1 comment · May be fixed by #9066
Open
1 task
Assignees

Comments

@nihal467
Copy link
Member

nihal467 commented Nov 7, 2024

Description

  • Refactor the existing facility export by combining two existing tests and adding test for verifying sidebar collapse functionality

General Instruction

  • Use all reusable functions from the commands.ts file and other existing tests.
  • To understand if a custom function used in other existing tests exists, search using their element ID in the codebase.
  • Use the POM approach; refer to the Patient_Spec folder for guidance.
  • Add necessary API verifications and verify notifications and text to avoid flaky tests.
  • Add the test file to FacilityHomepage.cy.ts and the related function in the facilityHome.ts file

Task - 1: Add new test for sidebar collapse

  • Once the homepage loads, verify that all sidebar icons with their corresponding text are visible.
  • Next, collapse the sidebar and confirm that only the icons are visible.
  • now again expand the sidebar and verify all the sidebar icon with their corresponding text are visible

Task - 2: Refactor the existing cypress facility export

Image

  • Remove the "Verify Capacity Export Functionality" test, and incorporate those test lines into the existing "Verify Facility Export Functionality" test.
  • Add API verification for the capacity export test as well.
@Alokih
Copy link
Contributor

Alokih commented Nov 7, 2024

@nihal467 sir can I work on this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants