From 9333da2df764cb6d050b8a870dac9a2797b02fa9 Mon Sep 17 00:00:00 2001 From: Adeel Khan Date: Sun, 31 Jan 2021 00:58:25 +0500 Subject: [PATCH] **) Fix TPA Alert messages **) Fix TPA options incorrect text VAN-297 --- src/common-components/ThirdPartyAuthAlert.jsx | 4 ++-- .../ThirdPartyAuthAlert.test.jsx.snap | 4 ++-- src/register/RegistrationPage.jsx | 4 ++-- .../RegistrationPage.test.jsx.snap | 20 ------------------- 4 files changed, 6 insertions(+), 26 deletions(-) diff --git a/src/common-components/ThirdPartyAuthAlert.jsx b/src/common-components/ThirdPartyAuthAlert.jsx index a53a20c0..0504a9f2 100644 --- a/src/common-components/ThirdPartyAuthAlert.jsx +++ b/src/common-components/ThirdPartyAuthAlert.jsx @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import { FormattedMessage } from '@edx/frontend-platform/i18n'; import { Alert } from '@edx/paragon'; -import { LOGIN_PAGE } from '../data/constants'; +import { LOGIN_PAGE, REGISTER_PAGE } from '../data/constants'; const ThirdPartyAuthAlert = (props) => { const { currentProvider, referrer, platformName } = props; @@ -29,7 +29,7 @@ const ThirdPartyAuthAlert = (props) => { ); } - return { message }; + return { message }; }; ThirdPartyAuthAlert.defaultProps = { diff --git a/src/common-components/tests/__snapshots__/ThirdPartyAuthAlert.test.jsx.snap b/src/common-components/tests/__snapshots__/ThirdPartyAuthAlert.test.jsx.snap index 736f62b7..5a46fa1d 100644 --- a/src/common-components/tests/__snapshots__/ThirdPartyAuthAlert.test.jsx.snap +++ b/src/common-components/tests/__snapshots__/ThirdPartyAuthAlert.test.jsx.snap @@ -2,7 +2,7 @@ exports[`ThirdPartyAuthAlert should match login page third party auth alert message snapshot 1`] = ` @@ -696,11 +691,6 @@ exports[`./RegistrationPage.js should match default section snapshot 1`] = ` Create Account - - or create an account using - @@ -948,11 +938,6 @@ exports[`./RegistrationPage.js should match pending button state snapshot 1`] = Create Account - - or create an account using - @@ -1201,11 +1186,6 @@ exports[`./RegistrationPage.js should show error message on 409 1`] = ` Create Account - - or create an account using -