From 8d0181ccca636751428bf65628ccbf07924441f0 Mon Sep 17 00:00:00 2001
From: Dmytro <98233552+DmytroAlipov@users.noreply.github.com>
Date: Tue, 14 Feb 2023 14:18:56 +0200
Subject: [PATCH] feat: don't show support button (#744)
Do not show the button "Need help logging in?"
if there is no support page for sign-in issues.
---
src/forgot-password/ForgotPasswordPage.jsx | 22 ++++++++++---------
.../tests/ForgotPasswordPage.test.jsx | 8 +++++++
2 files changed, 20 insertions(+), 10 deletions(-)
diff --git a/src/forgot-password/ForgotPasswordPage.jsx b/src/forgot-password/ForgotPasswordPage.jsx
index 624dc7c3..c0f34927 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['additional.help.text'], { platformName })}
diff --git a/src/forgot-password/tests/ForgotPasswordPage.test.jsx b/src/forgot-password/tests/ForgotPasswordPage.test.jsx
index 830fe10c..913d696c 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(