-
Notifications
You must be signed in to change notification settings - Fork 477
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
Added test for resource, facility and migrated them to POM approach #6106
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hi, This pr has been automatically marked as stale because it has not had any recent activity. It will be automatically closed if no further activity occurs for 7 more days. Thank you for your contributions. |
83cef6f
to
41ef2d5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add API Verification to confirm successful form submission
"Test description" | ||
); | ||
facilityPage.clickSubmitRequestButton(); | ||
facilityPage.verifySuccessNotification( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add api verification
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
facilityPage.clickManageFacilityDropdown(); | ||
facilityPage.clickDeleteFacilityOption(); | ||
facilityPage.confirmDeleteFacility(); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for deleting a facility, district admin have no access, so verify the error message and the API response
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
facilityPage.clickManageInventory(); | ||
facilityPage.fillInventoryDetails("Liquid Oxygen", "Add Stock", "120"); | ||
facilityPage.clickAddInventory(); | ||
facilityPage.verifySuccessNotification("Inventory created successfully"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
verify using api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
resourcePage.clickUpdateStatus(); | ||
resourcePage.updateStatus("APPROVED"); | ||
resourcePage.clickSubmitButton(); | ||
resourcePage.verifySuccessNotification( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
verify the submission using API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
resourcePage.openAlreadyCreatedResource(); | ||
resourcePage.addCommentForResource("Test comment"); | ||
resourcePage.clickPostCommentButton(); | ||
resourcePage.verifySuccessNotification("Comment added successfully"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
verify using api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
* adds field principle diagnosis * show in consultation details * fix typo * fix cypress * try adding wait * fix tests
* Added padding to count block on patients page * fixed date format in asset manage page * Merged configure facility and configure health facility in one page * removed commented code * changed weekly to average weekly for working hours
LGTM |
WHAT
🤖 Generated by Copilot at 5d322f7
This pull request improves the cypress test cases for the resource page by using page object classes and custom commands. It also adds new test functionality for the status and comment features of the resource page. To support the test cases, it adds data-testid attributes to some elements in the resource page components.
Proposed Changes
@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖 Generated by Copilot at 5d322f7
assets_manage.cy.ts
(link)