Merge pull request #26809 from overleaf/rh-email-already-registered

Update 'email already registered' text

GitOrigin-RevId: aa8b7d0f83549f22a721f6e41a4a6cd51e287251
This commit is contained in:
roo hutton
2025-07-04 10:38:39 +01:00
committed by Copybot
parent 425344b40b
commit a7e3ce67ea
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -654,7 +654,7 @@
"email_address": "Email address",
"email_address_is_invalid": "Email address is invalid",
"email_already_associated_with": "The <b>__email1__</b> email is already associated with the <b>__email2__</b> <b>__appName__</b> account.",
"email_already_registered": "This email is already registered",
"email_already_registered": "This email address is already associated with a different Overleaf account.",
"email_already_registered_secondary": "This email is already registered as a secondary email",
"email_already_registered_sso": "This email is already registered. Please log in to your account another way and link your account to the new provider via your account settings.",
"email_confirmed_onboarding": "Great! Lets get you set up",
@@ -125,7 +125,9 @@ describe('Add secondary email address confirmation code email', function () {
})
expect(res.response.statusCode).to.equal(409)
expect(res.body.message.text).to.equal('This email is already registered')
expect(res.body.message.text).to.equal(
'This email address is already associated with a different Overleaf account.'
)
})
})
@@ -129,7 +129,8 @@ describe('<AccountInfoSection />', function () {
fetchMock.post('/user/settings', {
status: 409,
body: {
message: 'This email is already registered',
message:
'This email address is already associated with a different Overleaf account.',
},
})
renderSectionWithUserProvider()
@@ -139,7 +140,9 @@ describe('<AccountInfoSection />', function () {
name: /update/i,
})
)
await screen.findByText('This email is already registered')
await screen.findByText(
'This email address is already associated with a different Overleaf account.'
)
})
it('hides email input', async function () {