diff --git a/frontend/src/component/application/__tests__/__snapshots__/application-edit-component-test.js.snap b/frontend/src/component/application/__tests__/__snapshots__/application-edit-component-test.js.snap
index 7fcf9dc024..55a4015dff 100644
--- a/frontend/src/component/application/__tests__/__snapshots__/application-edit-component-test.js.snap
+++ b/frontend/src/component/application/__tests__/__snapshots__/application-edit-component-test.js.snap
@@ -43,77 +43,22 @@ exports[`renders correctly with permissions 1`] = `
`;
exports[`renders correctly without permission 1`] = `
-
+
+
+ Loading...
+
-
-
-
-
-
-
- Created:
-
- 02/02/2022
-
-
-
+ className="MuiLinearProgress-bar MuiLinearProgress-barColorPrimary MuiLinearProgress-bar1Indeterminate"
+ style={Object {}}
+ />
+
`;
diff --git a/frontend/src/component/application/__tests__/application-edit-component-test.js b/frontend/src/component/application/__tests__/application-edit-component-test.js
index bceb3822aa..7a48f3e00a 100644
--- a/frontend/src/component/application/__tests__/application-edit-component-test.js
+++ b/frontend/src/component/application/__tests__/application-edit-component-test.js
@@ -1,26 +1,29 @@
import { ThemeProvider } from '@material-ui/core';
-import ApplicationEdit from '../ApplicationEdit/ApplicationEdit';
+import { ApplicationEdit } from '../ApplicationEdit/ApplicationEdit';
import renderer from 'react-test-renderer';
import { MemoryRouter } from 'react-router-dom';
import { ADMIN } from '../../providers/AccessProvider/permissions';
import theme from '../../../themes/main-theme';
import { createFakeStore } from '../../../accessStoreFake';
import AccessProvider from '../../providers/AccessProvider/AccessProvider';
+import UIProvider from '../../providers/UIProvider/UIProvider';
test('renders correctly if no application', () => {
const tree = renderer
.create(
-
- Promise.resolve({})}
- storeApplicationMetaData={jest.fn()}
- deleteApplication={jest.fn()}
- history={{}}
- locationSettings={{ locale: 'en-GB' }}
- />
-
+
+
+ Promise.resolve({})}
+ storeApplicationMetaData={jest.fn()}
+ deleteApplication={jest.fn()}
+ history={{}}
+ locationSettings={{ locale: 'en-GB' }}
+ />
+
+
)
@@ -34,54 +37,56 @@ test('renders correctly without permission', () => {
.create(
-
- Promise.resolve({})}
- storeApplicationMetaData={jest.fn()}
- deleteApplication={jest.fn()}
- history={{}}
- application={{
- appName: 'test-app',
- instances: [
- {
- instanceId: 'instance-1',
- clientIp: '123.123.123.123',
- lastSeen: '2017-02-23T15:56:49',
- sdkVersion: '4.0',
- },
- ],
- strategies: [
- {
- name: 'StrategyA',
- description: 'A description',
- },
- {
- name: 'StrategyB',
- description: 'B description',
- notFound: true,
- },
- ],
- seenToggles: [
- {
- name: 'ToggleA',
- description: 'this is A toggle',
- enabled: true,
- project: 'default',
- },
- {
- name: 'ToggleB',
- description: 'this is B toggle',
- enabled: false,
- notFound: true,
- project: 'default',
- },
- ],
- url: 'http://example.org',
- description: 'app description',
- }}
- locationSettings={{ locale: 'en-GB' }}
- />
-
+
+
+ Promise.resolve({})}
+ storeApplicationMetaData={jest.fn()}
+ deleteApplication={jest.fn()}
+ history={{}}
+ application={{
+ appName: 'test-app',
+ instances: [
+ {
+ instanceId: 'instance-1',
+ clientIp: '123.123.123.123',
+ lastSeen: '2017-02-23T15:56:49',
+ sdkVersion: '4.0',
+ },
+ ],
+ strategies: [
+ {
+ name: 'StrategyA',
+ description: 'A description',
+ },
+ {
+ name: 'StrategyB',
+ description: 'B description',
+ notFound: true,
+ },
+ ],
+ seenToggles: [
+ {
+ name: 'ToggleA',
+ description: 'this is A toggle',
+ enabled: true,
+ project: 'default',
+ },
+ {
+ name: 'ToggleB',
+ description: 'this is B toggle',
+ enabled: false,
+ notFound: true,
+ project: 'default',
+ },
+ ],
+ url: 'http://example.org',
+ description: 'app description',
+ }}
+ locationSettings={{ locale: 'en-GB' }}
+ />
+
+
)
@@ -95,56 +100,58 @@ test('renders correctly with permissions', () => {
.create(
-
- Promise.resolve({})}
- storeApplicationMetaData={jest.fn()}
- history={{}}
- deleteApplication={jest.fn()}
- application={{
- appName: 'test-app',
- instances: [
- {
- instanceId: 'instance-1',
- clientIp: '123.123.123.123',
- lastSeen: '2017-02-23T15:56:49',
- sdkVersion: '4.0',
- },
- ],
- strategies: [
- {
- name: 'StrategyA',
- description: 'A description',
- },
- {
- name: 'StrategyB',
- description: 'B description',
- notFound: true,
- },
- ],
- seenToggles: [
- {
- name: 'ToggleA',
- description: 'this is A toggle',
- enabled: true,
- project: 'default',
- },
- {
- name: 'ToggleB',
- description: 'this is B toggle',
- enabled: false,
- notFound: true,
- project: 'default',
- },
- ],
- url: 'http://example.org',
- description: 'app description',
- }}
- locationSettings={{ locale: 'en-GB' }}
- />
-
+
+
+ Promise.resolve({})}
+ storeApplicationMetaData={jest.fn()}
+ history={{}}
+ deleteApplication={jest.fn()}
+ application={{
+ appName: 'test-app',
+ instances: [
+ {
+ instanceId: 'instance-1',
+ clientIp: '123.123.123.123',
+ lastSeen: '2017-02-23T15:56:49',
+ sdkVersion: '4.0',
+ },
+ ],
+ strategies: [
+ {
+ name: 'StrategyA',
+ description: 'A description',
+ },
+ {
+ name: 'StrategyB',
+ description: 'B description',
+ notFound: true,
+ },
+ ],
+ seenToggles: [
+ {
+ name: 'ToggleA',
+ description: 'this is A toggle',
+ enabled: true,
+ project: 'default',
+ },
+ {
+ name: 'ToggleB',
+ description: 'this is B toggle',
+ enabled: false,
+ notFound: true,
+ project: 'default',
+ },
+ ],
+ url: 'http://example.org',
+ description: 'app description',
+ }}
+ locationSettings={{ locale: 'en-GB' }}
+ />
+
+
)