Skip to content

Commit

Permalink
[8.x] [Cloud Security] Update wiz version callout (elastic#196316) (e…
Browse files Browse the repository at this point in the history
…lastic#196392)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Cloud Security] Update wiz version callout
(elastic#196316)](elastic#196316)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Jordan","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-15T17:07:05Z","message":"[Cloud
Security] Update wiz version callout
(elastic#196316)","sha":"2132e7506dffec640b446e9f9decf091b2980f54","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v9.0.0","Team:Cloud
Security","backport:prev-minor"],"title":"[Cloud Security] Update wiz
version
callout","number":196316,"url":"https://github.com/elastic/kibana/pull/196316","mergeCommit":{"message":"[Cloud
Security] Update wiz version callout
(elastic#196316)","sha":"2132e7506dffec640b446e9f9decf091b2980f54"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196316","number":196316,"mergeCommit":{"message":"[Cloud
Security] Update wiz version callout
(elastic#196316)","sha":"2132e7506dffec640b446e9f9decf091b2980f54"}}]}]
BACKPORT-->

Co-authored-by: Jordan <[email protected]>
  • Loading branch information
kibanamachine and JordanSh authored Oct 15, 2024
1 parent a4938bc commit 6a23cc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ describe('CloudPostureThirdPartySupportCallout', () => {

render(<CloudPostureThirdPartySupportCallout packageInfo={mockPackageInfo} />);

expect(screen.getByText(/New! Starting from version 1.9/)).toBeInTheDocument();
expect(screen.getByText(/New! Starting from version 2.0/)).toBeInTheDocument();
});

it('does not render callout when package is not wiz', () => {
const nonWizPackageInfo = { name: 'other' } as PackageInfo;
render(<CloudPostureThirdPartySupportCallout packageInfo={nonWizPackageInfo} />);

expect(screen.queryByText(/New! Starting from version 1.9/)).not.toBeInTheDocument();
expect(screen.queryByText(/New! Starting from version 2.0/)).not.toBeInTheDocument();
});

it('does not render callout when it has been dismissed', () => {
(useLocalStorage as jest.Mock).mockReturnValue([true, jest.fn()]);

render(<CloudPostureThirdPartySupportCallout packageInfo={mockPackageInfo} />);

expect(screen.queryByText(/New! Starting from version 1.9/)).not.toBeInTheDocument();
expect(screen.queryByText(/New! Starting from version 2.0/)).not.toBeInTheDocument();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const CloudPostureThirdPartySupportCallout = ({
iconType="cheer"
title={i18n.translate('xpack.fleet.epm.wizIntegration.newFeaturesCallout', {
defaultMessage:
'New! Starting from version 1.9, ingest vulnerability and misconfiguration findings from Wiz into Elastic. Leverage out-of-the-box contextual investigation and threat-hunting workflows.',
'New! Starting from version 2.0, ingest vulnerability and misconfiguration findings from Wiz into Elastic. Leverage out-of-the-box contextual investigation and threat-hunting workflows.',
})}
/>
<EuiSpacer size="s" />
Expand Down

0 comments on commit 6a23cc1

Please sign in to comment.