-
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 facility.cy.ts #6107
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, @ShivamJhaa, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
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. |
WHAT
🤖 Generated by Copilot at bd11d35
The pull request improves the testing and code quality of the facility management features. It refactors the
facility_spec
tests into separate files and uses page objects to simplify the test logic. It also adds new test cases and methods for various facility actions and validations. It makes minor changes to theFacilityHome
component and theLoginPage
page object to support the testing.Proposed Changes
@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖 Generated by Copilot at bd11d35
FacilityPage
page object and consolidate them in thefacility.cy.ts
file (link, link, link, link)Facility Creation
suite (link)cy
object from thelocal-cypress
module in theFacilityPage
andLoginPage
page objects, to use the custom wrapper for the Cypress commands (link, link)FacilityPage
page object for clicking on the manage facility dropdown options and performing the actions and assertions for the new test cases (link, link)useSelector
import from theFacilityHome
component (link)Resource Request
andDelete Facility
options in the manage facility dropdown, to make them easier to select in the Cypress tests (link, link)