Create cypress test for asset transaction and service history's #6349
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WHAT
🤖 Generated by Copilot at 7f55921
The pull request enhances the asset management feature and its automated testing. It adds new test cases and methods for various aspects of creating, viewing, and editing assets and their service and transaction history. It also adds id attributes to several components and elements to improve the testability of the code. The changes affect the files
cypress/e2e/assets_spec/assets_manage.cy.ts
,cypress/pageobject/Facility/FacilityCreation.ts
,cypress/pageobject/Asset/AssetCreation.ts
,src/Components/Assets/AssetManage.tsx
,src/Components/Assets/AssetServiceEditModal.tsx
,src/Components/Facility/FacilityHome.tsx
, andsrc/Components/Form/FormFields/Autocomplete.tsx
.Proposed Changes
@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖 Generated by Copilot at 7f55921
cypress/pageobject/Asset/AssetCreation.ts
for the asset management tests, such as clicking the update button, scrolling into notes and service history, entering asset notes and service date, viewing and editing the service history, verifying the asset location and transaction status, and clicking the asset location (link)cypress/pageobject/Facility/FacilityCreation.ts
for the asset management tests, such as clicking the create asset and view asset options from the facility dropdown menu, verifying the facility badge content, the facility create asset and view asset redirection, and the asset facility back redirection (link, link)cypress/e2e/assets_spec/assets_manage.cy.ts
for the asset management feature, covering the scenarios of creating and editing a service history, creating an asset transaction, and verifying the facility asset page redirection (link, link)