-
{feature.name}{' '}
-
+
}
diff --git a/frontend/src/component/layout/MainLayout/MainLayout.tsx b/frontend/src/component/layout/MainLayout/MainLayout.tsx
index f03a963927..4379fd9ca4 100644
--- a/frontend/src/component/layout/MainLayout/MainLayout.tsx
+++ b/frontend/src/component/layout/MainLayout/MainLayout.tsx
@@ -37,7 +37,7 @@ export const MainLayout = ({ children }: IMainLayoutProps) => {
<>
-
+
>
diff --git a/frontend/src/component/menu/__tests__/apiDetails.test.tsx b/frontend/src/component/menu/Footer/ApiDetails/ApiDetails.test.tsx
similarity index 61%
rename from frontend/src/component/menu/__tests__/apiDetails.test.tsx
rename to frontend/src/component/menu/Footer/ApiDetails/ApiDetails.test.tsx
index 8e6027143c..d758d70121 100644
--- a/frontend/src/component/menu/__tests__/apiDetails.test.tsx
+++ b/frontend/src/component/menu/Footer/ApiDetails/ApiDetails.test.tsx
@@ -1,6 +1,6 @@
import React from 'react';
-import renderer from 'react-test-renderer';
-import { ApiDetails } from '../Footer/ApiDetails/ApiDetails';
+import { ApiDetails } from 'component/menu/Footer/ApiDetails/ApiDetails';
+import { render } from 'utils/testRenderer';
test('renders correctly with empty version', () => {
const uiConfig = {
@@ -10,8 +10,8 @@ test('renders correctly with empty version', () => {
version: '',
};
- const tree = renderer.create(
).toJSON();
- expect(tree).toMatchSnapshot();
+ render(
);
+ expect(document.body).toMatchSnapshot();
});
test('renders correctly with ui-config', () => {
@@ -22,8 +22,8 @@ test('renders correctly with ui-config', () => {
version: '1.1.0',
};
- const tree = renderer.create(
).toJSON();
- expect(tree).toMatchSnapshot();
+ render(
);
+ expect(document.body).toMatchSnapshot();
});
test('renders correctly without uiConfig', () => {
@@ -32,8 +32,8 @@ test('renders correctly without uiConfig', () => {
version: '1.1.0',
};
- const tree = renderer.create(
).toJSON();
- expect(tree).toMatchSnapshot();
+ render(
);
+ expect(document.body).toMatchSnapshot();
});
test('renders correctly with versionInfo', () => {
@@ -48,6 +48,6 @@ test('renders correctly with versionInfo', () => {
},
};
- const tree = renderer.create(
).toJSON();
- expect(tree).toMatchSnapshot();
+ render(
);
+ expect(document.body).toMatchSnapshot();
});
diff --git a/frontend/src/component/menu/Footer/ApiDetails/ApiDetails.tsx b/frontend/src/component/menu/Footer/ApiDetails/ApiDetails.tsx
index 5b656bee7d..9588928b05 100644
--- a/frontend/src/component/menu/Footer/ApiDetails/ApiDetails.tsx
+++ b/frontend/src/component/menu/Footer/ApiDetails/ApiDetails.tsx
@@ -5,6 +5,7 @@ import {
formatUpdateNotification,
IPartialUiConfig,
} from './apidetails.helpers';
+import { FooterTitle } from 'component/menu/Footer/FooterTitle';
interface IApiDetailsProps {
uiConfig: IPartialUiConfig;
@@ -18,13 +19,13 @@ export const ApiDetails = (props: IApiDetailsProps): ReactElement => {
return (
-
+
{currentVersion}{' '}
({environment})}
/>
-
+
+
+
+
+ Unleash
+
+
+ (
+ test
+ )
+
+
+
+
+ We are the best!
+
+
+
+
+