Added Cypress Test to verify Asset Filter Functionality #6275
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 6823d1f
This pull request adds and improves the Cypress tests for the asset filters and search features. It also fixes some bugs and inconsistencies in the page object classes and the UI components related to the asset filters. It modifies the files
cypress/pageobject/Asset/AssetFilters.ts
,cypress/pageobject/Asset/AssetSearch.ts
,cypress/e2e/assets_spec/asset_homepage.cy.ts
,src/CAREUI/interactive/SlideOver.tsx
, andsrc/Components/Assets/AssetFilter.tsx
.Proposed Changes
@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖 Generated by Copilot at 6823d1f
assetLocation
to theapplyAssetFilters
method to select the location filter from the advanced filters menu (link, link)clearFilters
to clear all the applied filters and verify the URL and the API response (link)AssetFilters
class for the filter texts, the advanced filter button, and the slide over back button (link)clear
andclick
commands in thetypeSearchKeyword
method to avoid the issue of the search input not being cleared properly (link)clickAssetByName
method to ensure the asset details page is loaded (link)SlideOver.tsx
file to make it easier to locate and click in the tests (link)AssetFilter.tsx
file to avoid the conflict with the facility select component and make it consistent with the id attribute (link)