[Backport 4.4-7.16] Remove duplicated buttons in SCA inventory #5016
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.
Description
This pull request removes unneeded buttons in the SCA inventory section.
The affected buttons are:
that were displayed on the top of the panel.
With the work in a previous pull request (#4653), these actions are included in the reusable component, but the previous buttons were not removed so they were duplicated.
Issues Resolved
Closes #5011
Evidence
The buttons were placed in the highlighted section.
Test
Scenario 1:
Export formatted
button should not be duplicatedGiven data related to Security configuration assessment scan
When When the user goes to
Modules/Security configuration assessment
And Select a policy
Then the button should be duplicated. It should appear above the table.
Scenario 2:
Refresh
button should not be duplicatedGiven data related to Security configuration assessment scan
When When the user goes to
Modules/Security configuration assessment
And Select a policy
Then the button should be duplicated. It should appear above the table.
Check List
yarn test:jest