fix: [VAN-747] Fix tests in which registered email msg changed (#453)

This commit is contained in:
Attiya Ishaque
2021-10-22 18:16:46 +05:00
committed by GitHub
parent e91a8a4dfa
commit a3953b672f

View File

@@ -271,14 +271,14 @@ describe('RegistrationPage', () => {
...initialState.register,
registrationError: {
username: [{ userMessage: 'It looks like this username is already taken' }],
email: [{ userMessage: 'It looks like this email address is already registered' }],
email: [{ userMessage: 'This email is already associated with an existing or previous edX account' }],
},
},
});
const registrationPage = mount(reduxWrapper(<IntlRegistrationPage {...props} />)).find('RegistrationPage');
expect(registrationPage.prop('validationDecisions')).toEqual({
country: '',
email: 'It looks like this email address is already registered',
email: 'This email is already associated with an existing or previous edX account',
name: '',
password: '',
username: 'It looks like this username is already taken',