diff --git a/src/forgot-password/ForgotPasswordPage.jsx b/src/forgot-password/ForgotPasswordPage.jsx index aa4a946a..9093b69a 100644 --- a/src/forgot-password/ForgotPasswordPage.jsx +++ b/src/forgot-password/ForgotPasswordPage.jsx @@ -141,16 +141,18 @@ const ForgotPasswordPage = (props) => { onClick={handleSubmit} onMouseDown={(e) => e.preventDefault()} /> - - {intl.formatMessage(messages['need.help.sign.in.text'])} - + {(getConfig().LOGIN_ISSUE_SUPPORT_LINK) && ( + + {intl.formatMessage(messages['need.help.sign.in.text'])} + + )}

{intl.formatMessage(messages['additional.help.text'], { platformName })} diff --git a/src/forgot-password/tests/ForgotPasswordPage.test.jsx b/src/forgot-password/tests/ForgotPasswordPage.test.jsx index bea4dbf9..0372f4c9 100644 --- a/src/forgot-password/tests/ForgotPasswordPage.test.jsx +++ b/src/forgot-password/tests/ForgotPasswordPage.test.jsx @@ -66,7 +66,15 @@ describe('ForgotPasswordPage', () => { }; }); + it('not should display need other help signing in button', () => { + const wrapper = mount(reduxWrapper()); + expect(wrapper.find('#forgot-password').exists()).toBeFalsy(); + }); + it('should display need other help signing in button', () => { + mergeConfig({ + LOGIN_ISSUE_SUPPORT_LINK: '/support', + }); const wrapper = mount(reduxWrapper()); expect(wrapper.find('#forgot-password').first().text()).toEqual('Need help signing in?'); });