+ {showAVCBanner && (
+
+
+
+ )}
diff --git a/x-pack/plugins/security_solution/public/common/components/landing_page/onboarding/styles/onboarding.styles.ts b/x-pack/plugins/security_solution/public/common/components/landing_page/onboarding/styles/onboarding.styles.ts
index f4a3901f4e2c0..4f2eb59f06bf2 100644
--- a/x-pack/plugins/security_solution/public/common/components/landing_page/onboarding/styles/onboarding.styles.ts
+++ b/x-pack/plugins/security_solution/public/common/components/landing_page/onboarding/styles/onboarding.styles.ts
@@ -25,6 +25,9 @@ export const useOnboardingStyles = () => {
padding: `0 ${euiTheme.size.xxl} ${euiTheme.size.xxxl}`,
backgroundColor: euiTheme.colors.lightestShade,
}),
+ bannerStyles: css({
+ margin: `-${euiTheme.size.l} 0`,
+ }),
}),
[
euiTheme.colors.lightestShade,
diff --git a/x-pack/plugins/security_solution/public/common/mock/mock_local_storage.ts b/x-pack/plugins/security_solution/public/common/mock/mock_local_storage.ts
index 36466231b64a4..24be4de96cf9b 100644
--- a/x-pack/plugins/security_solution/public/common/mock/mock_local_storage.ts
+++ b/x-pack/plugins/security_solution/public/common/mock/mock_local_storage.ts
@@ -27,10 +27,21 @@ export const localStorageMock = (): IStorage => {
};
};
+const createStorageMock = (storeMock: IStorage): Storage => {
+ const storage = new Storage(storeMock);
+ return {
+ store: storeMock,
+ get: jest.fn((...args) => storage.get(...args)),
+ clear: jest.fn((...args) => storage.clear(...args)),
+ set: jest.fn((...args) => storage.set(...args)),
+ remove: jest.fn((...args) => storage.remove(...args)),
+ } as Storage;
+};
+
export const createSecuritySolutionStorageMock = () => {
const localStorage = localStorageMock();
return {
localStorage,
- storage: new Storage(localStorage),
+ storage: createStorageMock(localStorage),
};
};