diff --git a/spec/__snapshots__/aboutApp.spec.ts.snap b/spec/__snapshots__/aboutApp.spec.ts.snap
index 11cbdaf1..6a92c3ad 100644
--- a/spec/__snapshots__/aboutApp.spec.ts.snap
+++ b/spec/__snapshots__/aboutApp.spec.ts.snap
@@ -53,7 +53,7 @@ exports[`about app should render correctly 1`] = `
title="Close"
>
Close
diff --git a/spec/aboutApp.spec.ts b/spec/aboutApp.spec.ts
index 14d5fe5d..6650f34c 100644
--- a/spec/aboutApp.spec.ts
+++ b/spec/aboutApp.spec.ts
@@ -156,4 +156,32 @@ describe('about app', () => {
podInput.simulate('mousedown');
expect(wrapper.find(`[data-testid="POD_INFO"]`).exists()).toEqual(true);
});
+
+ it('should shrink text if its save and close', () => {
+ const cloneAboutDataMock = {
+ ...aboutDataMockState,
+ finalConfig: { url: 'bcd.symphony.com' },
+ };
+
+ cloneAboutDataMock.globalConfig = { isPodUrlEditable: true };
+ cloneAboutDataMock.userConfig = { isPodUrlEditable: false };
+
+ const wrapper = shallow(React.createElement(AboutApp));
+ ipcRenderer.send('about-app-data', cloneAboutDataMock);
+ const pod = wrapper.find(`[data-testid="POD_INFO"]`);
+ pod.simulate('click', { detail: 1 });
+ pod.simulate('click', { detail: 2 });
+ pod.simulate('click', { detail: 3 });
+
+ const inputPod = wrapper.find(`[data-testid="POD_INFO_INPUT"]`);
+ inputPod.simulate('keydown', {
+ target: { value: 'pod.symphony.com' },
+ keyCode: 13,
+ });
+ expect(
+ wrapper
+ .find(`[data-testid="CLOSE_BUTTON"] span`)
+ .hasClass('AboutApp-button-save-restart-text'),
+ ).toBe(true);
+ });
});
diff --git a/src/renderer/components/about-app.tsx b/src/renderer/components/about-app.tsx
index 5c4ae5e4..0a5664bf 100644
--- a/src/renderer/components/about-app.tsx
+++ b/src/renderer/components/about-app.tsx
@@ -220,7 +220,11 @@ export default class AboutApp extends React.Component<{}, IState> {
ref={this.closeButtonRef}
disabled={!isValidHostname}
>
-
+
{closeButtonText}
@@ -410,6 +414,7 @@ export default class AboutApp extends React.Component<{}, IState> {
{item.key}
{isPodEditing ? (